-
Notifications
You must be signed in to change notification settings - Fork 183
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
Add state-level summary tax variables #5436
Add state-level summary tax variables #5436
Conversation
…uding a script to generate combined quantities for states allowing married filing separately on same return
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5436 +/- ##
========================================
Coverage 99.04% 99.04%
========================================
Files 2649 2670 +21
Lines 38447 38717 +270
Branches 168 168
========================================
+ Hits 38078 38348 +270
Misses 335 335
Partials 34 34 ☔ View full report in Codecov by Sentry. |
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.
There are a couple of other credits with similar concerns around start / end dates - integration tests could show whether it is worth adopting specific logic (reviewed states until MD)
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.
We have commonly returned the adjusted_gross_income
for states which adopt federal AGI for integration testing purposes - it could be worth creating state specific AGI variables with an adds = adjusted_gross_income
function
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.
Let's address that separately. I filed #5440
- id_ctc # Idaho Child Tax Credit | ||
- il_ctc # Illinois Child Tax Credit | ||
- ma_dependent_credit # Massachusetts Dependent Credit | ||
- md_ctc # Maryland Child Tax Credit |
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.
The mn_child_and_working_families_credits
would be worth adding since it dependents on the number of CTC eligible children
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.
Added here and in state_eitcs.yaml
- md_eitc # Maryland | ||
- me_eitc # Maine | ||
- mi_eitc # Michigan | ||
- mn_wfc # Minnesota (called “Working Family Credit”) |
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.
this credit was discontinued in 2023 - we need to make a second list post 2023 for the value to not be returned
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.
Let's address in #5441
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.
similar as AGI - we have returned the federal value for the state field in TAXSIM when testing
0000-01-01: | ||
- ar | ||
- de | ||
- ia |
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.
The IA married filing separately option as disabled in 2023
0000-01-01: | ||
- az_dependent_tax_credit # Arizona Dependent Tax Credit | ||
- ca_yctc # California Young Child Tax Credit | ||
- co_ctc # Colorado Child Tax Credit |
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.
The CO CTC was adopted in 2022 - I am not sure if the value will be returned as 0 or n/a when testing for 2021
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.
similar concern for all periods before 2021 - could we add on integration test for all of the created variables just to see if it is supported for each year (e.g. 2020 - 2024)
- co_ctc # Colorado Child Tax Credit | ||
- co_family_affordability_credit # Colorado Family Affordability Credit | ||
- ct_child_tax_rebate # Connecticut Child Tax Rebate | ||
- dc_ctc # District of Columbia Child Tax Credit |
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.
only available starting in 2025
- dc_ctc # District of Columbia Child Tax Credit | |
- dc_ctc # District of Columbia Child Tax Credit |
- ca_yctc # California Young Child Tax Credit | ||
- co_ctc # Colorado Child Tax Credit | ||
- co_family_affordability_credit # Colorado Family Affordability Credit | ||
- ct_child_tax_rebate # Connecticut Child Tax Rebate |
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.
- ct_child_tax_rebate # Connecticut Child Tax Rebate | |
- ct_child_tax_rebate # Connecticut Child Tax Rebate |
only applicable in 2022 but this would return a value for 2023 and forward
- co_family_affordability_credit # Colorado Family Affordability Credit | ||
- ct_child_tax_rebate # Connecticut Child Tax Rebate | ||
- dc_ctc # District of Columbia Child Tax Credit | ||
- id_ctc # Idaho Child Tax Credit |
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.
- id_ctc # Idaho Child Tax Credit | |
- id_ctc # Idaho Child Tax Credit |
The credit will be discontinued in 2026
- ct_child_tax_rebate # Connecticut Child Tax Rebate | ||
- dc_ctc # District of Columbia Child Tax Credit | ||
- id_ctc # Idaho Child Tax Credit | ||
- il_ctc # Illinois Child Tax Credit |
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.
- il_ctc # Illinois Child Tax Credit | |
- il_ctc # Illinois Child Tax Credit |
The IL CTC is available starting in 2024
Can we address the year piece in a separate PR per #5441? I'd like to get this in to start using in policyengine-taxsim. |
Sure, can we just add one integration test here? Just one household for the years 2021 - 2024 with the new variables as outputs, just to check whether it returns 0s or na's (any state such as IL, CT or DC with program parameter values post 2021) |
Error message:
|
…licyengine-us into MaxGhenis/issue5435
@PavelMakarchuk I changed the test you added to provide a total state AGI summed across the tax unit rather than a list. |
Fix #5435
Adds:
Also includes a script to generate all the variables for states that allow married filing separately on same return, e.g. coalescing dc_taxable_income_indiv and dc_taxable_income_joint into dc_taxable_income.