Skip to content

Commit

Permalink
Black formatted files
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellpound committed Sep 20, 2023
1 parent 33104d6 commit d9b5e85
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ metadata:
- title: 2022 Louisiana Resident Income Tax Return, page 16-2A
href: https://revenue.louisiana.gov/TaxForms/IT540WEB(2022)%20F%20D2.pdf
- title: 2021 Louisiana Resident Income Tax Return, page 16-2A
href: https://revenue.louisiana.gov/TaxForms/IT540WEB(2021)%20F.pdf
href: https://revenue.louisiana.gov/TaxForms/IT540WEB(2021)%20F.pdf
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ metadata:
- title: 2022 Louisiana Resident Income Tax Return, page 14,16
href: https://revenue.louisiana.gov/TaxForms/IT540WEB(2022)%20F%20D2.pdf
- title: 2021 Louisiana Resident Income Tax Return, page 14,16
href: https://revenue.louisiana.gov/TaxForms/IT540WEB(2021)%20F.pdf
href: https://revenue.louisiana.gov/TaxForms/IT540WEB(2021)%20F.pdf
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ metadata:
- title: 2022 Louisiana Resident Income Tax Return
href: https://revenue.louisiana.gov/TaxForms/IT540WEB(2022)%20F%20D2.pdf#page=16
- title: 2021 Louisiana Resident Income Tax Return
href: https://revenue.louisiana.gov/TaxForms/IT540WEB(2021)%20F.pdf#page=16
href: https://revenue.louisiana.gov/TaxForms/IT540WEB(2021)%20F.pdf#page=16
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ metadata:
- title: 2022 Louisiana Resident Income Tax Return, page 16-2A
href: https://revenue.louisiana.gov/TaxForms/IT540WEB(2022)%20F%20D2.pdf
- title: 2021 Louisiana Resident Income Tax Return, page 16-2A
href: https://revenue.louisiana.gov/TaxForms/IT540WEB(2021)%20F.pdf
href: https://revenue.louisiana.gov/TaxForms/IT540WEB(2021)%20F.pdf
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,4 @@
members: [person1, person2]
state_code: LA
output:
la_exemptions: 9_000
la_exemptions: 9_000
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,23 @@ class la_nonrefundable_childcare(Variable):
)

def formula(tax_unit, period, parameters):
p = parameters(period).gov.states.la.tax.income.credits.nonrefundable_p3.nonrefundable_child_care
p = parameters(
period
).gov.states.la.tax.income.credits.nonrefundable_p3.nonrefundable_child_care
agi = tax_unit("adjusted_gross_income", period)
fed_cdcc = tax_unit("cdcc", period)

# for agi under income floor can use the refundable credit
nonrefundable = agi > p.income_floor
nonrefundable = agi > p.income_floor
fed_cdcc = fed_cdcc * nonrefundable

income_mult = p.income_mult.calc(agi)
credit = fed_cdcc * income_mult

# for agi over the threshold the credit is the minimum of
# for agi over the threshold the credit is the minimum of
# fed_cdcc * income_mult and the limit for above the threshold
return where(agi > p.income_threshold, min(credit, p.above_threshold_max), credit)
return where(
agi > p.income_threshold,
min(credit, p.above_threshold_max),
credit,
)
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ class la_nonrefundable_priority_3_credits(Variable):
"https://revenue.louisiana.gov/TaxForms/IT540WEB(2022)%20F%20D2.pdf",
"https://revenue.louisiana.gov/TaxForms/IT540iWEB(2022)D1.pdf",
)
adds = "gov.states.la.tax.income.credits.nonrefundable_p3.sources"
adds = "gov.states.la.tax.income.credits.nonrefundable_p3.sources"
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ class la_other_nonrefundable_p3(Variable):
reference = (
"https://revenue.louisiana.gov/TaxForms/IT540WEB(2022)%20F%20D2.pdf",
"https://revenue.louisiana.gov/TaxForms/IT540iWEB(2022)D1.pdf",
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ class la_refundable_childcare(Variable):
)

def formula(tax_unit, period, parameters):
p = parameters(period).gov.states.la.tax.income.credits.refundable_p2.refundable_child_care
p = parameters(
period
).gov.states.la.tax.income.credits.refundable_p2.refundable_child_care
agi = tax_unit("adjusted_gross_income", period)
childcare_expenses = tax_unit("tax_unit_childcare_expenses", period)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ def formula(tax_unit, period, parameters):
filing_status = tax_unit("filing_status", period)
statuses = filing_status.possible_values
single_separate = (filing_status == statuses.SINGLE) | (
filing_status == statuses.SEPARATE)
filing_status == statuses.SEPARATE
)

dependents = tax_unit("tax_unit_dependents", period)
aged_blind = tax_unit("aged_blind_count", period)
Expand Down

0 comments on commit d9b5e85

Please sign in to comment.