Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refines the per lot requirement option #51

Merged
merged 3 commits into from
Feb 22, 2024
Merged

Refines the per lot requirement option #51

merged 3 commits into from
Feb 22, 2024

Conversation

hickeng
Copy link
Owner

@hickeng hickeng commented Feb 22, 2024

Adds an additional Tweak to experiment with impact of sale date for AVGO on LTG/STG/ordinary income.

Adds preliminary hack for experimenting with different synthetic basis calcs. Really this just wants Microsoft Excel solver.
The added logic showed no effect as the lots it has impact from are the new ones that get assigned as cash.

Added Custom Function to switch back to Balanced and to select which basis to use for optimization.
Added optimizer log output in CSV form for reference as to which lots are assigned what cash/stock ratio.
Substantial refactor of optimizer code.

Avoid serializing values that scripts injected into the sheet.
Added validations to ensure user inputs are not negative values.

This added logic to look at the future ordinary income impact to see if it made a difference, but it only impacts the lots that would see substantial impact are newer ones that are assigned cash.

Added Custom Function to switch back to Balanced
Added optimizer log output in CSV form
Substantial refactor of optimizer code.

Avoid serializing scripted injected values.

Added validations to ensure user inputs are not negative values.
This experimented with a synthetic basis to consider the potential
reduction in tax from holding for longer when calculating lot
distribution.
Adding in LTG didn't have noticable effect and STG & state are much
more involved.

Think I'm calling it here and this
fixes #49

Additionally adds STG column for ESPP despite all 0's for
consistency in calculation logic.

Includes ordinary income in the 2023 estimate if selling
@hickeng hickeng added enhancement New feature or request solver Relating to the solver logic for applying tax strategy, aka manual per-lot treatment labels Feb 22, 2024
@hickeng hickeng merged commit c043601 into main Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request solver Relating to the solver logic for applying tax strategy, aka manual per-lot treatment
Projects
Development

Successfully merging this pull request may close these issues.

1 participant