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 the 2500 value in AGI formula #2631

Open
MaxGhenis opened this issue Nov 10, 2021 · 1 comment
Open

Parameterize the 2500 value in AGI formula #2631

MaxGhenis opened this issue Nov 10, 2021 · 1 comment
Labels
enhancement good first issue Good issues for a person new to this project

Comments

@MaxGhenis
Copy link
Contributor

The hard-coded 2500 in the AGI formula here looks like a phase-out start:

# phase-out personal exemption amount
if exact == 1: # exact calculation as on tax forms
line5 = max(0., c00100 - II_em_ps[MARS - 1])
line6 = math.ceil(line5 / (2500. / sep))
line7 = II_prt * line6
c04600 = max(0., pre_c04600 * (1. - line7))
else: # smoothed calculation needed for sensible mtr calculation
dispc_numer = II_prt * (c00100 - II_em_ps[MARS - 1])
dispc_denom = 2500. / sep
dispc = min(1., max(0., dispc_numer / dispc_denom))
c04600 = pre_c04600 * (1. - dispc)
return (c00100, pre_c04600, c04600)

@duncanhobbs
Copy link
Contributor

It looks like the 2500 is part of the personal exemption phaseout.

From section 151 of the internal revenue code:

For each $2,500 (or fraction thereof) by which the taxpayer’s adjusted gross income for the taxable year exceeds the applicable amount, the personal exemption is reduced by 2 percent.

@PSLmodels PSLmodels deleted a comment from martinholmer Jan 3, 2022
@martinholmer martinholmer added enhancement good first issue Good issues for a person new to this project labels Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement good first issue Good issues for a person new to this project
Projects
None yet
Development

No branches or pull requests

3 participants