Repository navigation
feat(taxes): 2026 federal and nj rules and the investment tax engine - #441
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
src/shared/tax-rules-2026.ts: the 2026 rules, MFJ only, a source URL per block: federal standard deduction, seven ordinary brackets, 0/15/20 on qualified dividends and long-term gains by total taxable income, foreign tax credit without Form 1116, capital loss limit, NIIT; NJ Table B (joint) with its rates and subtractions, exemptions.TaxRulesinterface,RULESby year,rulesFor(year)falls back to the latest year and says so (fallback: true)src/viewer/app/taxes.ts: pure engine, no UI yetHousehold,DEFAULT_HOUSEHOLDinvestmentIncome(ytds)sums the shown accounts' Tax Info YTD boxes by how they are taxed, the oldestasOfbracketTax,nextBracket,federalTax(ordinary first, preferential stacked on top),njTax(Table B: income x rate - subtract),netCapital(short and long term net first, loss limited, carryover)investmentTax(rules, household, income): federal and NJ tax added, rates, foreign credit, effective rate, the room before 22%, before qualified dividends leave 0%, before the next NJ rate, the rate of one more short-term dollar (bump zone included), notesform-1116andniitWhy
Owner 2026-12-03: "I have a buffer about 1500$-1600$ approx. but this is exactly info what I want to see on line and constantly updating / calculation on my viewer". This is the calculation the Taxes page will draw; Settings -> Taxes and the page come in the next PRs
Notes
Checks
bun test(583 pass, 0 fail).claude/tools/etfs/tc/check.sh "$PWD" src/shared/tax-rules-2026.ts src/shared/tax-rules-2026.test.ts src/viewer/app/taxes.ts src/viewer/app/taxes.test.tsprints nothinggit diff --check