Fix fiitax to include Additional Medicare Tax#713
Draft
PavelMakarchuk wants to merge 1 commit intomainfrom
Draft
Fix fiitax to include Additional Medicare Tax#713PavelMakarchuk wants to merge 1 commit intomainfrom
PavelMakarchuk wants to merge 1 commit intomainfrom
Conversation
The code at lines 1099-1108 intended to add additional_medicare_tax to fiitax, but the else branch was dead code — fiitax was always already in columns from the income_tax mapping, so the pass branch ran instead. Now additional_medicare_tax is always computed and added to fiitax, matching TAXSIM's treatment (which includes it per IRS Form 1040 Schedule 2, Line 23). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
income_taxvariable does not include Additional Medicare Tax (0.9% on wages above $200K single / $250K MFJ), but TAXSIM includes it infiitax(per IRS Form 1040 Schedule 2)additional_medicare_taxtofiitax, but theelsebranch was dead code —fiitaxwas always already computed from theincome_taxmapping, so thepassbranch ran insteadadditional_medicare_taxand add it tofiitaxImpact on CPS comparison (1000 records, with
--disable-salt --assume-w2-wages):Test plan
🤖 Generated with Claude Code