-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Idaho tax logic #72
Open
sydneybeutler
wants to merge
10
commits into
TheCGO:main
Choose a base branch
from
sydneybeutler:id
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d974d47
Added id_ct_credperchild.yaml
sydneybeutler b6df574
Merge remote-tracking branch 'origin/main' into id
sydneybeutler b444f5f
saved parameters and variables
sydneybeutler b4ffff2
changed id folders to id2
sydneybeutler 181c429
Merge remote-tracking branch 'origin/main' into id
sydneybeutler c37b14b
ain
sydneybeutler f5eadc6
Merge branch 'TheCGO:main' into id
sydneybeutler d874aa0
Merge branch 'id' of https://github.com/sydneybeutler/fiscalsim-us in…
sydneybeutler ccdd228
Merge remote-tracking branch 'origin/main' into id
sydneybeutler aa1a7b6
Black formatted files
sydneybeutler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
fiscalsim_us/parameters/gov/states/id/tax/income/main/itemized/medical_expense_limit.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
description: Idaho deductible medical expenses must be greater than this percentage rate of an individual's income. | ||
values: | ||
2022-01-01: 0.075 | ||
metadata: | ||
label: Idaho minimum medical expense rate | ||
period: year | ||
unit: currency-USD | ||
reference: | ||
- title: Itemized Deduction Worksheet for Idaho, Line 1 | ||
href: https://tax.idaho.gov/wp-content/uploads/forms/EIS00407/EIS00407_01-05-2023.pdf |
10 changes: 10 additions & 0 deletions
10
fiscalsim_us/parameters/gov/states/id/tax/income/main/standard/dep_stdded_addition.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
description: Idaho addition to earned income to calculate standard deduction if you can be claimed as a dependent and earned income is more than $750. | ||
values: | ||
2022-01-01: 400 | ||
metadata: | ||
unit: currency-USD | ||
period: year | ||
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 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
...d/tax/income/subtractions/id_alt_energy_device_deduction/alt_energy_device_deduction.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
description: Idaho alternative energy device deduction percentages. | ||
metadata: | ||
period: year | ||
unit: currency-USD | ||
breakdown: | ||
- year aquired | ||
reference: | ||
- title: Form 39R 2022 Residential Supplemental Schedule, Part B Line 5 | ||
href: https://tax.idaho.gov/wp-content/uploads/forms/EFO00088/EFO00088_12-30-2022.pdf | ||
|
||
# Sum amounts and take minimimum of deduction or $5,000 | ||
2022: | ||
2022-01-01: .40 | ||
2021: | ||
2022-01-01: .20 | ||
2020: | ||
2022-01-01: .20 | ||
2019: | ||
2022-01-01: .20 |
10 changes: 10 additions & 0 deletions
10
...income/subtractions/id_alt_energy_device_deduction/alt_energy_device_deduction_limit.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
description: Idaho alternative energy device deduction limit. | ||
values: | ||
2022-01-01: 5000 | ||
metadata: | ||
unit: currency-USD | ||
period: year | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
.../id/tax/income/subtractions/id_alt_energy_device_deduction/alt_energy_device_cost_2019.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +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 |
9 changes: 9 additions & 0 deletions
9
.../id/tax/income/subtractions/id_alt_energy_device_deduction/alt_energy_device_cost_2020.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +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 |
9 changes: 9 additions & 0 deletions
9
.../id/tax/income/subtractions/id_alt_energy_device_deduction/alt_energy_device_cost_2021.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +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 |
9 changes: 9 additions & 0 deletions
9
.../id/tax/income/subtractions/id_alt_energy_device_deduction/alt_energy_device_cost_2022.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +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 |
30 changes: 30 additions & 0 deletions
30
.../id/tax/income/subtractions/id_alt_energy_device_deduction/alt_energy_device_deduction.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
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) |
9 changes: 9 additions & 0 deletions
9
...ax/income/subtractions/id_alt_energy_device_deduction/alt_energy_device_deduction_2019.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +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 |
9 changes: 9 additions & 0 deletions
9
...ax/income/subtractions/id_alt_energy_device_deduction/alt_energy_device_deduction_2020.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +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 |
9 changes: 9 additions & 0 deletions
9
...ax/income/subtractions/id_alt_energy_device_deduction/alt_energy_device_deduction_2021.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +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 |
9 changes: 9 additions & 0 deletions
9
...ax/income/subtractions/id_alt_energy_device_deduction/alt_energy_device_deduction_2022.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +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 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sydneybeutler. I don't think you want to make this change. The
max_()
format is correct. It is a policyengine-core function.