Exclude state income tax from federal SALT under --disable-salt#997
Open
PavelMakarchuk wants to merge 1 commit into
Open
Exclude state income tax from federal SALT under --disable-salt#997PavelMakarchuk wants to merge 1 commit into
PavelMakarchuk wants to merge 1 commit into
Conversation
TAXSIM-35 deducts mortgage interest and property tax on the federal return but does not deduct state income tax. Verified against the taxsimtest binary across states and years (e.g. NY single $84K wages + $37K mortgage -> federal itemized $37,000, with the state tax excluded). The prior three-pass --disable-salt re-introduced the computed state tax as a fixed federal SALT input (Pass B), which overshot TAXSIM by the full state-tax amount on every itemizing record. Replace it with a single SALT-disabled pass that zeros state_and_local_sales_or_income_tax for both the state and federal computation (property tax via real_estate_taxes still flows through). On a 60-record itemizing sample (10 states x 3 incomes x 2 property-tax levels) this cuts the mean federal fiitax mismatch vs the binary from ~$1,185 (0/60 within $15) to $0 (60/60 exact). taxsim #971 (CA joint, $164K interest + $50K mortgage) now returns fiitax $14,921.55, matching the binary. State-side outputs are unchanged (the pass already computed state tax with SALT zeroed). Updates the disable-salt test to assert the federal itemized excludes state income tax. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Problem
TAXSIM-35 deducts mortgage interest and property tax on the federal return but not state income tax. Verified against the
taxsimtestbinary across states and years:But the prior three-pass
--disable-saltre-introduced the computed state tax as a fixed federal SALT input (Pass B), overshooting TAXSIM by the full state-tax amount on every itemizing record. Surfaced by #971.Fix
Replace the three-pass with a single SALT-disabled pass: zero
state_and_local_sales_or_income_taxfor both the state and federal computation, so federal Schedule A excludes state income/sales tax. Property tax (real_estate_taxes) still flows through.Verification (vs
taxsimtestbinary)60-record itemizing sample (10 states × 3 incomes × 2 property-tax levels):
siitaxunchanged (the pass already computed state tax with SALT zeroed)Updates the disable-salt test to assert the federal itemized excludes state income tax. Full suite: 142 passed.
Closes #971
🤖 Generated with Claude Code