PolicyEngine / policyengine-us

The PolicyEngine US Python package contains a rules engine of the US tax-benefit system, and microdata generation for microsimulation analysis.
https://policyengine.org/us
GNU Affero General Public License v3.0
103 stars 176 forks source link

Refactor ut_income_tax formula #4982

Closed hua7450 closed 1 month ago

hua7450 commented 2 months ago

The current formula for ut_income_tax has some missing calculations. Tax form: https://tax.utah.gov/forms/current/tc-40.pdf # line 22 & 32

MaxGhenis commented 2 months ago

Are we missing logic? #993 shows not deviations against TAXSIM for Utah, but missing calculations suggests problems beyond refactoring.

hua7450 commented 2 months ago

Are we missing logic? #993 shows not deviations against TAXSIM for Utah, but missing calculations suggests problems beyond refactoring.

We have ut_income_tax_exempt as a boolean where taxpayers can be exempted from paying tax, but this variable has not been used in any formula. I added it to the ut_income_tax_before_non_refundable_credits. In the tax form, the ut_income_tax_before_non_refundable_credits is called Utach income tax (line 22). I changed the name so the variable names are more consistent with other states'.