Fix three AMT function bugs against 2025 Form 6251#3049
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3049 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 13 13
Lines 2721 2721
=========================================
Hits 2721 2721
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
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.
Bug Fixes
(a) Remove stale medical add-back from itemizer AMTI build. TCJA/OBBBA
harmonized the AMT and regular Schedule A medical floors at 7.5% of
AGI, so the 2025 Form 6251 Part I has no medical add-back line. The
stale 2.5% add-back encoded the pre-TCJA 10%-vs-7.5% floor
differential. Drop c17000 from the AMT signature.
(b) Correct Part III "skip 20%-bracket / reform-4th-bracket" test from
line17 == line32 to line22 == line32. The form's gate compares the
cap-gains-eligible portion (line 22) to the sum of 0%+15% amounts
(line 32), not the ordinary-income portion (line 17). Under current
law (AMT_CG_brk3 = 9e+99) the prior test set line33 = 0 when it
should have computed line22 - line32 > 0.
(c) Subtract standard deduction in non-itemizer AMTI. Form 6251 line 1
equals Form 1040 line 15 = AGI - (STD or itemized) - QBID. The
prior code encoded the pre-TCJA "AMT disallows STD" rule, which
overstated AMTI for high-income non-itemizers near the exemption
phaseout (TCJA permitted STD for AMT).
Changes in Expected Test Results
Refresh cpscsv_agg_expect.csv, reforms_expect.csv, test_reforms_cps
expected diffs, and test_utils.test_create_tables expected values.
Regenerate CPS+TMD .tables baselines for 2025-2035 (.params.*
baselines unchanged because no policy parameters changed).