Skip to content

Commit

Permalink
Black formatted files
Browse files Browse the repository at this point in the history
  • Loading branch information
sydneybeutler committed Nov 29, 2023
1 parent ccdd228 commit aa1a7b6
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ metadata:
label: Dependent earned income addition for standard deduction
reference:
- title: Idaho Form 40, Individual Income Tax Return and Instructions 2022, page 8
href: https://tax.idaho.gov/wp-content/uploads/forms/EFO00089/EFO00089_12-30-2022.pdf
href: https://tax.idaho.gov/wp-content/uploads/forms/EFO00089/EFO00089_12-30-2022.pdf
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ metadata:
label: Idaho deduction limit for alternative energy device deduction
reference:
- title: Idaho Form 39R, Residential Supplemental Schedule and Instructions 2022
href: https://tax.idaho.gov/wp-content/uploads/forms/EFO00088/EFO00088_12-30-2022.pdf
href: https://tax.idaho.gov/wp-content/uploads/forms/EFO00088/EFO00088_12-30-2022.pdf
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ class id_additions(Variable):
* Idaho college savings account withdrawal
* Bonus Depreciation
"""

value_type = float
entity = TaxUnit
label = "Idaho additions"
unit = USD
definition_period = YEAR
reference = (
"https://tax.idaho.gov/wp-content/uploads/forms/EFO00089/EFO00089_12-30-2022.pdf"
)
reference = "https://tax.idaho.gov/wp-content/uploads/forms/EFO00089/EFO00089_12-30-2022.pdf"
defined_for = StateCode.ID
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from fiscalsim_us.model_api import *


class alt_energy_device_cost_2019(Variable):
value_type = float
entity = TaxUnit
label = "Idaho Qualifying Alternative Energy Device Cost 2019"
documentation = "Cost of Idaho qualifying alternative energy device 2019"
definition_period = YEAR
definition_period = YEAR
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from fiscalsim_us.model_api import *


class alt_energy_device_cost_2020(Variable):
value_type = float
entity = TaxUnit
label = "Idaho Qualifying Alternative Energy Device Cost 2020"
documentation = "Cost of Idaho qualifying alternative energy device 2020"
definition_period = YEAR
definition_period = YEAR
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from fiscalsim_us.model_api import *


class alt_energy_device_cost_2021(Variable):
value_type = float
entity = TaxUnit
label = "Idaho Qualifying Alternative Energy Device Cost 2021"
documentation = "Cost of Idaho qualifying alternative energy device 2021"
definition_period = YEAR
definition_period = YEAR
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from fiscalsim_us.model_api import *


class alt_energy_device_cost_2022(Variable):
value_type = float
entity = TaxUnit
label = "Idaho Qualifying Alternative Energy Device Cost 2022"
documentation = "Cost of Idaho qualifying alternative energy device 2022"
definition_period = YEAR
definition_period = YEAR
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ class alt_energy_device_deduction(Variable):
definition_period = YEAR

def formula(tax_unit, period, parameters):
p = parameters(period).gov.states.id.tax.income.subtractions.id_alt_energy_device_deduction
p = parameters(
period
).gov.states.id.tax.income.subtractions.id_alt_energy_device_deduction
limit = p.alt_energy_device_deduction_limit
cost_19 = tax_unit("alt_energy_device_cost_2019", period)
cost_20 = tax_unit("alt_energy_device_cost_2020", period)
Expand All @@ -22,5 +24,7 @@ def formula(tax_unit, period, parameters):
deduction_2020 = cost_20 * portion_deductible
deduction_2021 = cost_21 * portion_deductible
deduction_2022 = cost_22 * portion_deductible
deduction_total = deduction_2019 + deduction_2020 + deduction_2021 + deduction_2022
deduction_total = (
deduction_2019 + deduction_2020 + deduction_2021 + deduction_2022
)
return min(deduction_total, limit)
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from fiscalsim_us.model_api import *


class alt_energy_device_2019(Variable):
value_type = bool
entity = TaxUnit
label = "Idaho Qualifying Alternative Energy Device 2019"
documentation = "Idaho qualifying alternative energy device 2019"
definition_period = YEAR
definition_period = YEAR
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from fiscalsim_us.model_api import *


class alt_energy_device_2020(Variable):
value_type = bool
entity = TaxUnit
label = "Idaho Qualifying Alternative Energy Device 2020"
documentation = "Idaho qualifying alternative energy device 2020"
definition_period = YEAR
definition_period = YEAR
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from fiscalsim_us.model_api import *


class alt_energy_device_2021(Variable):
value_type = bool
entity = TaxUnit
label = "Idaho Qualifying Alternative Energy Device 2021"
documentation = "Idaho qualifying alternative energy device 2021"
definition_period = YEAR
definition_period = YEAR
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from fiscalsim_us.model_api import *


class alt_energy_device_2022(Variable):
value_type = bool
entity = TaxUnit
label = "Idaho Qualifying Alternative Energy Device 2022"
documentation = "Idaho qualifying alternative energy device 2022"
definition_period = YEAR
definition_period = YEAR

0 comments on commit aa1a7b6

Please sign in to comment.