Skip to content

Commit

Permalink
Correct AMT taxable income calculation to handle QBID correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholmer committed Jul 27, 2024
1 parent 0b775e5 commit a5a54de
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions taxcalc/calcfunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1906,7 +1906,7 @@ def AGIsurtax(c00100, MARS, AGI_surtax_trt, AGI_surtax_thd, taxbc, surtax):
def AMT(e07300, dwks13, standard, f6251, c00100, c18300, taxbc,
c04470, c17000, c20800, c21040, e24515, MARS, sep, dwks19,
dwks14, c05700, e62900, e00700, dwks10, age_head, age_spouse,
earned, cmbtp,
earned, cmbtp, qbided,
AMT_child_em_c_age, AMT_brk1,
AMT_em, AMT_prt, AMT_rt1, AMT_rt2,
AMT_child_em, AMT_em_ps, AMT_em_pe,
Expand Down Expand Up @@ -1943,7 +1943,7 @@ def AMT(e07300, dwks13, standard, f6251, c00100, c18300, taxbc,
c20800: float
Schedule A: net limited miscellaneous deductions deducted
c21040: float
Itemized deductiosn that are phased out
Itemized deductions that are phased out
e24515: float
Schedule D: Un-Recaptured Section 1250 Gain
MARS: int
Expand All @@ -1970,6 +1970,8 @@ def AMT(e07300, dwks13, standard, f6251, c00100, c18300, taxbc,
Earned income for filing unit
cmbtp: float
Estimate of income on (AMT) Form 6251 but not in AGI
qbided: float
Qualified business income deduction
AMT_child_em_c_age: float
Age ceiling for special AMT exemption
AMT_brk1: float
Expand Down Expand Up @@ -2021,11 +2023,11 @@ def AMT(e07300, dwks13, standard, f6251, c00100, c18300, taxbc,
# pylint: disable=too-many-statements,too-many-branches
# Form 6251, Part I
if standard == 0.0:
c62100 = (c00100 - e00700 - c04470 +
c62100 = (c00100 - e00700 - qbided - c04470 +
max(0., min(c17000, 0.025 * c00100)) +
c18300 + c20800 - c21040)
if standard > 0.0:
c62100 = c00100 - e00700
c62100 = c00100 - e00700 - qbided
c62100 += cmbtp # add income not in AGI but considered income for AMT
if MARS == 3:
amtsepadd = max(0.,
Expand Down

0 comments on commit a5a54de

Please sign in to comment.