Skip to content

Commit

Permalink
Fixes bug in a couple of variables
Browse files Browse the repository at this point in the history
  • Loading branch information
finpaul committed Nov 28, 2023
1 parent 4158273 commit d03c2cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ def formula(tax_unit, period, parameters):
historic = tax_unit("mi_historic_preservation_amount")
tax = tax_unit("mi_income_tax_before_credits")
credit = imposed + historic
return max(0, credit - tax)
return max(0, credit - tax)
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ class mi_income_subject_to_tax(Variable):
def formula(tax_unit, period, parameters):
total = tax_unit("mi_total_agi")
subtractions = tax_unit("mi_subtractions")
return max(0, subtractions - total)

return max(0, subtractions - total)
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ class mi_taxable_income(Variable):
def formula(tax_unit, period, parameters):
income = tax_unit("mi_income_subject_to_tax")
exemption = tax_unit("mi_exemptions")
return max(0,exemption-income)
return max(0, exemption - income)

0 comments on commit d03c2cd

Please sign in to comment.