Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameterize 25% on line 37 of AMT #3340

Merged
merged 16 commits into from
Dec 18, 2023
Merged
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: patch
changes:
fixes:
- Parameterized 25% of the Alternative Minimum Tax calculation.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
description: The IRS multiplies the taxable excess capital gain by this rate.
metadata:
unit: /1
label: Alternative Minimum Tax capital gain excess tax rate
period: year
reference:
- title: 26 U.S. Code Β§ 55 - Alternative minimum tax imposed
href: https://www.law.cornell.edu/uscode/text/26/55#b_3_E
values:
2021-01-01: 0.25
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,18 @@ def formula(tax_unit, period, parameters):
dwks34 = dwks10 + dwks19
dwks36 = max_(0, dwks34 - dwks1)
dwks37 = max_(0, dwks33 - dwks36)
dwks38 = 0.25 * dwks37

# parameterized
PavelMakarchuk marked this conversation as resolved.
Show resolved Hide resolved
p = parameters(period).gov.irs.income

dwks38 = p.amt.capital_gain_excess_tax_rate * dwks37
# Break in worksheet lines
dwks39 = dwks19 + dwks20 + dwks28 + dwks31 + dwks37
dwks40 = dwks1 - dwks39
dwks41 = 0.28 * dwks40

# Compute regular tax using bracket rates and thresholds
reg_taxinc = max_(0, dwks19)
p = parameters(period).gov.irs.income
bracket_tops = p.bracket.thresholds
bracket_rates = p.bracket.rates
reg_tax = 0
Expand Down
Loading