Skip to content

Commit

Permalink
ain
Browse files Browse the repository at this point in the history
  • Loading branch information
sydneybeutler committed Nov 18, 2023
1 parent 181c429 commit c37b14b
Show file tree
Hide file tree
Showing 32 changed files with 113 additions and 283 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,20 @@ values:
- taxable_social_security # (5)
- military_service_income # (4)
- workers_compensation # (13)
2022-01-01:
- salt_refund_income # (2)
- us_govt_interest # (3)
- alt_energy_device_deduction # (5)
- taxable_social_security # (7)
- workers_compensation # (20)

metadata:
unit: list
references:
- title: 2022 Idaho CodeSection 63-3022D - deduction of expenses for household and dependent care services
href: https://law.justia.com/codes/idaho/2022/title-63/chapter-30/section-63-3022d/
- title: 2022 Idaho Form 39R
href: https://tax.idaho.gov/wp-content/uploads/forms/EFO00088/EFO00088_03-01-2023.pdf
- title: Individual Income Tax Forms and Instructions 2021
href: https://tax.idaho.gov/wp-content/uploads/forms/EIN00046/EIN00046_11-15-2021.pdf#page=30
- title: Section 35.01.01.254 - (5) / (3) (a)
Expand Down

This file was deleted.

This file was deleted.

72 changes: 0 additions & 72 deletions fiscalsim_us/parameters/gov/states/id2/tax/income/rates/joint.yaml

This file was deleted.

72 changes: 0 additions & 72 deletions fiscalsim_us/parameters/gov/states/id2/tax/income/rates/other.yaml

This file was deleted.

This file was deleted.

This file was deleted.

13 changes: 13 additions & 0 deletions fiscalsim_us/variables/gov/states/id/tax/income/id_additions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,22 @@


class id_additions(Variable):
"""
Section A on Idaho 2022 Form 39R. These additions to income include:
* Federal net operating loss deduction
* Capital loss carryover incurred outside the state before becoming an Idaho resident
* Non-Idaho state and local bond interest and dividends
* 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"
)
defined_for = StateCode.ID
2 changes: 1 addition & 1 deletion fiscalsim_us/variables/gov/states/id/tax/income/id_agi.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ class id_agi(Variable):
defined_for = StateCode.ID

adds = ["id_additions", "adjusted_gross_income"]
subtracts = ["id_subtractions"]
subtracts = ["id_subtractions", "alt_energy_device_deduction"]
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def formula(tax_unit, period, parameters):
"id_income_tax_before_non_refundable_credits", period
)
non_refundable_credits = tax_unit("id_non_refundable_credits", period)
return max_(before_non_refundable_credits - non_refundable_credits, 0)
return max(before_non_refundable_credits - non_refundable_credits, 0)
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from fiscalsim_us.model_api import *


class alt_energy_device_deduction(Variable):
value_type = float
entity = TaxUnit
label = "Idaho Alternative Energy Device Deduction"
unit = USD
definition_period = YEAR

def formula(tax_unit, period, parameters):
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)
cost_21 = tax_unit("alt_energy_device_cost_2021", period)
cost_22 = tax_unit("alt_energy_device_cost_2022", period)
portion_deductible = p.alt_energy_device_deduction[year]

# Multiply percentage by device and sum
deduction_2019 = cost_19 * portion_deductible
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
return min(deduction_total, limit)
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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
15 changes: 0 additions & 15 deletions fiscalsim_us/variables/gov/states/id2/tax/income/id_agi.py

This file was deleted.

Loading

0 comments on commit c37b14b

Please sign in to comment.