-
Couldn't load subscription status.
- Fork 201
New York CTC computation fixes #4451
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
Draft
Shinuing
wants to merge
19
commits into
PolicyEngine:master
Choose a base branch
from
Shinuing:Shinuing/issue4427
base: master
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.
Draft
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
0710680
Add comments for NY form IT-213
Shinuing 7854957
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
Shinuing c8ac88c
Draft New York CTC worksheet A
Shinuing dd14e79
draft NY CTC worksheet A
Shinuing aac9e79
draft worksheet b and c
Shinuing 45dd92c
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
Shinuing d534070
add period
Shinuing 1f4c226
add additinal credits
Shinuing 64f116f
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
Shinuing da5cadc
add computation
Shinuing d6f71e8
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
Shinuing ed8bba1
add some calculations
Shinuing 3c1f3d0
intermediate changes to the base credit
PavelMakarchuk a9fe7c4
reduced base credit comp
PavelMakarchuk 970ae97
partial additional amount
PavelMakarchuk 1905a87
additional credit calc
PavelMakarchuk 914537f
Merge branch 'master' of https://github.com/PolicyEngine/policyengine…
Shinuing d7d4428
Merge branch 'Shinuing/issue4427' of https://github.com/Shinuing/poli…
Shinuing f692f3c
add tests for base credit
Shinuing 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
This file contains hidden or 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,4 @@ | ||
| - bump: minor | ||
| changes: | ||
| fixed: | ||
| - New York empire state child credit. |
10 changes: 10 additions & 0 deletions
10
policyengine_us/parameters/gov/states/ny/tax/income/credits/ctc/amount/base.yaml
This file contains hidden or 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: New York provides this base amount for the child tax credit per child. | ||
| values: | ||
| 2018-01-01: 1_000 | ||
| metadata: | ||
| unit: currency-USD | ||
| period: year | ||
| label: New York CTC base amount | ||
| reference: | ||
| - title: Instructions for Form IT-213 Claim for Empire State Child Credit | ||
| href: https://www.tax.ny.gov/pdf/2021/inc/it213i_2021.pdf#page=2 |
10 changes: 10 additions & 0 deletions
10
policyengine_us/parameters/gov/states/ny/tax/income/credits/ctc/amount/match.yaml
This file contains hidden or 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: New York shares this fraction of adjusted federal amount for the child tax credit. | ||
| values: | ||
| 2018-01-01: 0.05 | ||
| metadata: | ||
| unit: /1 | ||
| period: year | ||
| label: New York CTC share of federal adjusted credit | ||
| reference: | ||
| - title: Instructions for Form IT-213 Claim for Empire State Child Credit | ||
| href: https://www.tax.ny.gov/pdf/2021/inc/it213i_2021.pdf#page=2 #5% | ||
4 changes: 2 additions & 2 deletions
4
policyengine_us/parameters/gov/states/ny/tax/income/credits/ctc/amount/minimum.yaml
This file contains hidden or 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 |
|---|---|---|
| @@ -1,10 +1,10 @@ | ||
| description: Minimum amount for New York's Empire State Child Credit per child | ||
| description: New York limits the child tax credit per child to this amount. | ||
| values: | ||
| 2018-01-01: 100 | ||
| metadata: | ||
| unit: currency-USD | ||
| period: year | ||
| label: NY CTC minimum amount | ||
| label: New York CTC minimum amount | ||
| reference: | ||
| - title: Section 606 Credits against tax (c-1) | ||
| href: https://www.nysenate.gov/legislation/laws/TAX/606 |
5 changes: 3 additions & 2 deletions
5
policyengine_us/parameters/gov/states/ny/tax/income/credits/ctc/amount/percent.yaml
This file contains hidden or 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 |
|---|---|---|
| @@ -1,9 +1,10 @@ | ||
| description: New York's Empire State Child Credit share of federal credit | ||
| description: New York shares this fraction of federal credit for the child tax credit. | ||
| values: | ||
| 2018-01-01: 0.33 | ||
| metadata: | ||
| unit: /1 | ||
| label: NY CTC share of federal credit | ||
| period: year | ||
| label: New York CTC share of federal credit | ||
| reference: | ||
| - title: Section 606 Credits against tax (c-1) | ||
| href: https://www.nysenate.gov/legislation/laws/TAX/606 |
4 changes: 2 additions & 2 deletions
4
policyengine_us/parameters/gov/states/ny/tax/income/credits/ctc/minimum_age.yaml
This file contains hidden or 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 |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| description: Minimum age to qualify for New York's Empire State Child Credit | ||
| description: New York limits the child tax credit for child equal or above this age. | ||
| values: | ||
| 2018-01-01: 4 | ||
| metadata: | ||
| unit: year | ||
| label: NY CTC minimum age | ||
| label: New York CTC minimum age | ||
| reference: | ||
| - title: Section 606 Credits against tax (c-1) | ||
| href: https://www.nysenate.gov/legislation/laws/TAX/606 |
File renamed without changes.
29 changes: 29 additions & 0 deletions
29
..._us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_ctc/ny_ctc_base_credit.yaml
This file contains hidden or 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,29 @@ | ||
| - name: NY base credit is over reduced tax | ||
| period: 2021 | ||
| input: | ||
| income_tax: 1_000 | ||
| ny_ctc_federal_credits: 800 | ||
| ny_ctc_pre_reduction_base_credit: 500 | ||
| state_code: NY | ||
| output: | ||
| ny_ctc_base_credit: 200 #min(1_000 - 800,500) | ||
|
|
||
| - name: NY base credit is below reduced tax | ||
| period: 2021 | ||
| input: | ||
| income_tax: 1_000 | ||
| ny_ctc_federal_credits: 500 | ||
| ny_ctc_pre_reduction_base_credit: 300 | ||
| state_code: NY | ||
| output: | ||
| ny_ctc_base_credit: 300 #min(1_000 - 500,300) | ||
|
|
||
| - name: reduced tax capped at 0 | ||
| period: 2021 | ||
| input: | ||
| income_tax: 1_000 | ||
| ny_ctc_federal_credits: 1_200 | ||
| ny_ctc_pre_reduction_base_credit: 300 | ||
| state_code: NY | ||
| output: | ||
| ny_ctc_base_credit: 0 #min(max(0,1_000 - 1200),300) |
15 changes: 15 additions & 0 deletions
15
...y/baseline/gov/states/ny/tax/income/credits/ny_ctc/ny_ctc_claimed_additional_credits.yaml
This file contains hidden or 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,15 @@ | ||
| - name: Filer is eligible for NY CTC additional credit | ||
| period: 2021 | ||
| input: | ||
| residential_clean_energy_credit: 500 | ||
| state_code: NY | ||
| output: | ||
| ny_ctc_claimed_additional_credits: True | ||
|
|
||
| - name: Filer is not eligible for NY CTC additional credit | ||
| period: 2021 | ||
| input: | ||
| residential_clean_energy_credit: 0 | ||
| state_code: NY | ||
| output: | ||
| ny_ctc_claimed_additional_credits: False |
11 changes: 11 additions & 0 deletions
11
...tests/policy/baseline/gov/states/ny/tax/income/credits/ny_ctc/ny_ctc_federal_credits.yaml
This file contains hidden or 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,11 @@ | ||
| - name: NY Worksheet A/B for Form IT-213 federal credit computation | ||
| period: 2021 | ||
| input: | ||
| foreign_tax_credit: 300 | ||
| cdcc: 0 | ||
| education_tax_credits: 400 | ||
| savers_credit: 200 | ||
| elderly_disabled_credit: 100 | ||
| state_code: NY | ||
| output: | ||
| ny_ctc_federal_credits: 1_000 |
96 changes: 96 additions & 0 deletions
96
...cy/baseline/gov/states/ny/tax/income/credits/ny_ctc/ny_ctc_pre_reduction_base_credit.yaml
This file contains hidden or 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,96 @@ | ||
| - name: NY CTC pre reduction base credit if claimed additional credit and no deduction | ||
| period: 2021 | ||
| input: | ||
| ctc_qualifying_children: 3 | ||
| adjusted_gross_income: 100_000 | ||
| ny_ctc_claimed_additional_credits: 1_000 | ||
| # >0 then agi_with_exclusion_amount = 100_700 < threshold = 200_000 | ||
| foreign_earned_income_exclusion: 500 | ||
| puerto_rico_income: 200 | ||
| filing_status: SINGLE | ||
| state_code: NY | ||
| output: | ||
| ny_ctc_pre_reduction_base_credit: 3_000 | ||
| # base = 3 * 1_000 = 3_000 | ||
|
|
||
| - name: NY CTC pre reduction base credit if claimed additional credit with deduction, cappted at 0 | ||
| period: 2021 | ||
| input: | ||
| ctc_qualifying_children: 3 | ||
| adjusted_gross_income: 300_000 | ||
| ny_ctc_claimed_additional_credits: 1_000 | ||
| # >0 then agi_with_exclusion_amount = 300_700 > threshold = 200_000 | ||
| foreign_earned_income_exclusion: 500 | ||
| puerto_rico_income: 200 | ||
| filing_status: SINGLE | ||
| state_code: NY | ||
| output: | ||
| ny_ctc_pre_reduction_base_credit: 0 | ||
| # base = 3 * 1_000 = 3_000 | ||
| # rounded_reduced_agi_multiple = (300700-200000)/1000 = 100 | ||
| # rounded_reduced_agi_amount = 100*1000 = 100,000 | ||
| # subtraction_amount = 100,000 * 0.05 = 5000 | ||
|
|
||
| - name: NY CTC pre reduction base credit if claimed additional credit with deduction | ||
| period: 2021 | ||
| input: | ||
| ctc_qualifying_children: 3 | ||
| adjusted_gross_income: 210_000 | ||
| ny_ctc_claimed_additional_credits: 1_000 | ||
| # >0 then agi_with_exclusion_amount = 210_700 > threshold = 200_000 | ||
| foreign_earned_income_exclusion: 500 | ||
| puerto_rico_income: 200 | ||
| filing_status: SINGLE | ||
| state_code: NY | ||
| output: | ||
| ny_ctc_pre_reduction_base_credit: 2_450 | ||
| # base = 3 * 1_000 = 3_000 | ||
| # rounded_reduced_agi_multiple = 210700-200000/1000 = 11 | ||
| # rounded_reduced_agi_amount = 11*1000 = 11,000 | ||
| # subtraction_amount = 11,000 * 0.05 = 550 | ||
|
|
||
| - name: NY CTC pre reduction base credit if not claimed additional credit and no reduction | ||
| period: 2021 | ||
| input: | ||
| ctc_qualifying_children: 3 | ||
| adjusted_gross_income: 100_000 | ||
| ny_ctc_claimed_additional_credits: 0 | ||
| foreign_earned_income_exclusion: 500 | ||
| puerto_rico_income: 200 | ||
| filing_status: SINGLE | ||
| state_code: NY | ||
| output: | ||
| ny_ctc_pre_reduction_base_credit: 3_000 | ||
| # base = 3 * 1_000 = 3_000 | ||
| # agi_with_exclusion_amount = fagi = 100000 | ||
|
|
||
| - name: NY CTC pre reduction base credit if not claimed additional credit with reduction | ||
| period: 2021 | ||
| input: | ||
| ctc_qualifying_children: 3 | ||
| adjusted_gross_income: 250_000 | ||
| ny_ctc_claimed_additional_credits: 0 | ||
| foreign_earned_income_exclusion: 500 | ||
| puerto_rico_income: 200 | ||
| filing_status: SINGLE | ||
| state_code: NY | ||
| output: | ||
| ny_ctc_pre_reduction_base_credit: 500 | ||
| # base = 3 * 1_000 = 3_000 | ||
| # agi_with_exclusion_amount = fagi = 250000 | ||
| # rounded_reduced_agi_multiple = 50 | ||
|
|
||
| - name: NY CTC pre reduction base credit if claimed additional credit for other filing status | ||
| period: 2021 | ||
| input: | ||
| ctc_qualifying_children: 3 | ||
| adjusted_gross_income: 300_000 | ||
| ny_ctc_claimed_additional_credits: 1_000 | ||
| # >0 then agi_with_exclusion_amount = 300_700 < threshold = 400_000 | ||
| foreign_earned_income_exclusion: 500 | ||
| puerto_rico_income: 200 | ||
| filing_status: JOINT | ||
| state_code: NY | ||
| output: | ||
| ny_ctc_pre_reduction_base_credit: 3000 | ||
| # base = 3 * 1_000 = 3_000 |
79 changes: 79 additions & 0 deletions
79
...iables/gov/states/ny/tax/income/credits/ctc/additional_credit/ny_ctc_additional_credit.py
This file contains hidden or 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,79 @@ | ||
| from policyengine_us.model_api import * | ||
|
|
||
|
|
||
| class ny_ctc_additional_credit(Variable): | ||
| value_type = float | ||
| entity = TaxUnit | ||
| label = "New York CTC additional credit" | ||
| documentation = "New York's Empire State Child Credit Worksheet C" | ||
| unit = USD | ||
| definition_period = YEAR | ||
| reference = "https://www.tax.ny.gov/pdf/2021/inc/it213i_2021.pdf#page=5" | ||
| defined_for = "ny_ctc_additional_credit_eligible" | ||
|
|
||
| def formula(tax_unit, period, parameters): | ||
| pre_reduction_base_credit = tax_unit( | ||
| "ny_ctc_pre_reduction_base_credit", period | ||
| ) | ||
| base_credit = tax_unit("ny_ctc_base_credit", period) | ||
| # Line 3 | ||
| reduced_base_credit = pre_reduction_base_credit - base_credit | ||
| # Line 4 | ||
| earned_income = tax_unit("tax_unit_earned_income", period) | ||
| if period.start.year >= 2018: | ||
| instant_str = f"2017-01-01" | ||
| else: | ||
| instant_str = period | ||
| p_gov = parameters(instant_str).gov.irs.credits.ctc.refundable.phase_in | ||
| earned_income_over_threshold = earned_income > p_gov.threshold | ||
| # Line 5 | ||
| reduced_earned_income = where( | ||
| earned_income_over_threshold, earned_income - p_gov.threshold, 0 | ||
| ) | ||
| # Line 6 | ||
| earned_income_fraction = reduced_earned_income * p.match | ||
| # Line 7 | ||
| qualifying_children = tax_unit("ctc_qualifying_children", period) | ||
| children_over_threshold = ( | ||
| qualifying_children > p_gov.min_children_for_ss_taxes_minus_eitc | ||
| ) | ||
| smaller_of_earned_income_or_reduced_base = min_( | ||
| reduced_base_credit, earned_income_fraction | ||
| ) | ||
| # Calculation from federal schedule 8812 line 25 | ||
| SS_ADD_VARIABLES = [ | ||
| # Person: | ||
| "employee_social_security_tax", | ||
| "employee_medicare_tax", | ||
| "unreported_payroll_tax", | ||
| # Tax unit: | ||
| "self_employment_tax_ald", | ||
| "additional_medicare_tax", | ||
| ] | ||
| SS_SUBTRACT_VARIABLES = ["excess_payroll_tax_withheld"] | ||
| social_security_tax = add(tax_unit, period, SS_ADD_VARIABLES) - add( | ||
| tax_unit, period, SS_SUBTRACT_VARIABLES | ||
| ) | ||
| eitc = tax_unit("eitc", period) | ||
| social_security_excess = max_(0, social_security_tax - eitc) | ||
| # Line 8 | ||
| larger_of_ss_excess_or_earned_income = max_( | ||
| social_security_excess, earned_income_fraction | ||
| ) | ||
| # Line 9 | ||
| smaller_of_base_credit_or_larger_of_ss_excess_or_earned_income = min_( | ||
| reduced_base_credit, larger_of_ss_excess_or_earned_income | ||
| ) | ||
| base_credit_over_earned_income_fraction = ( | ||
| reduced_base_credit > earned_income_fraction | ||
| ) | ||
| equal_or_more_than_three_children_calc = where( | ||
| base_credit_over_earned_income_fraction, | ||
| smaller_of_base_credit_or_larger_of_ss_excess_or_earned_income, | ||
| reduced_base_credit, | ||
| ) | ||
| return where( | ||
| children_over_threshold, | ||
| equal_or_more_than_three_children_calc, | ||
| smaller_of_earned_income_or_reduced_base, | ||
| ) |
17 changes: 17 additions & 0 deletions
17
...v/states/ny/tax/income/credits/ctc/additional_credit/ny_ctc_additional_credit_eligible.py
This file contains hidden or 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,17 @@ | ||
| from policyengine_us.model_api import * | ||
|
|
||
|
|
||
| class ny_ctc_additional_credit_eligible(Variable): | ||
| value_type = bool | ||
| entity = TaxUnit | ||
| label = "Eligible for the NY CTC additional credit" | ||
| definition_period = YEAR | ||
| reference = "https://www.tax.ny.gov/pdf/2021/inc/it213i_2021.pdf#page=5" | ||
| defined_for = StateCode.NY | ||
|
|
||
| def formula(tax_unit, period, parameters): | ||
| pre_reduction_base_credit = tax_unit( | ||
| "ny_ctc_pre_reduction_base_credit", period | ||
| ) | ||
| base_credit = tax_unit("ny_ctc_base_credit", period) | ||
| return pre_reduction_base_credit > base_credit |
31 changes: 31 additions & 0 deletions
31
...ngine_us/variables/gov/states/ny/tax/income/credits/ctc/base_credit/ny_ctc_base_credit.py
This file contains hidden or 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,31 @@ | ||
| from policyengine_us.model_api import * | ||
|
|
||
|
|
||
| class ny_ctc_base_credit(Variable): | ||
| value_type = float | ||
| entity = TaxUnit | ||
| label = "The base NY CTC credit before reduction" | ||
| documentation = ( | ||
| "New York's Empire State Child Credit Worksheet A / B Part 2" | ||
| ) | ||
| unit = USD | ||
| definition_period = YEAR | ||
| reference = "https://www.tax.ny.gov/pdf/2021/inc/it213i_2021.pdf" | ||
| defined_for = StateCode.NY | ||
|
|
||
| def formula(tax_unit, period, parameters): | ||
| income_tax = tax_unit("income_tax", period) | ||
| # Line 19 and 19a from Form IT-201 - these are the same in our model | ||
| selected_credit_amount = tax_unit("ny_ctc_federal_credits", period) | ||
| # If the filer claimed additional credit, the base credit is reduced by the amount of the selected credits | ||
| # We currently skip this caluclation as we only compute the residential energy credit | ||
| reduced_tax = max_(0, income_tax - selected_credit_amount) | ||
| pre_reduction_base_credit = tax_unit( | ||
| "ny_ctc_pre_reduction_base_credit", period | ||
| ) | ||
| base_credit_over_reduced_tax = pre_reduction_base_credit > reduced_tax | ||
| return where( | ||
| base_credit_over_reduced_tax, | ||
| reduced_tax, | ||
| pre_reduction_base_credit, | ||
| ) |
19 changes: 19 additions & 0 deletions
19
...les/gov/states/ny/tax/income/credits/ctc/base_credit/ny_ctc_claimed_additional_credits.py
This file contains hidden or 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 @@ | ||
| from policyengine_us.model_api import * | ||
|
|
||
|
|
||
| class ny_ctc_claimed_additional_credits(Variable): | ||
| value_type = bool | ||
| entity = TaxUnit | ||
| label = "Claimed additional credits applicable for the NY CTC Worksheet B" | ||
| definition_period = YEAR | ||
| documentation = "Filers in New York are requirede to file the Worksheet B for Form IT-213, Line 6 if they claimed any of the following federal tax credits: adoption credit, mortgage interest credit, carryforward of District of Columbia firsttime homebuyer credit, or residential energy efficient property credit; or excluded income from Puerto Rico; or filed federal Form 2555 or Form 4563." | ||
| reference = "https://www.tax.ny.gov/pdf/2021/inc/it213i_2021.pdf#page=3" | ||
| defined_for = StateCode.NY | ||
|
|
||
| def formula(tax_unit, period, parameters): | ||
| # We currently do not include the adoption credit, mortgage interest credit, | ||
| # carryforward of District of Columbia first time homebuyer credit | ||
| applicable_credits = tax_unit( | ||
| "residential_clean_energy_credit", period | ||
| ) | ||
| return applicable_credits > 0 |
29 changes: 29 additions & 0 deletions
29
...e_us/variables/gov/states/ny/tax/income/credits/ctc/base_credit/ny_ctc_federal_credits.py
This file contains hidden or 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,29 @@ | ||
| from policyengine_us.model_api import * | ||
|
|
||
|
|
||
| class ny_ctc_federal_credits(Variable): | ||
| value_type = float | ||
| entity = TaxUnit | ||
| label = "NY Worksheet A/B for Form IT-213 federal credit computation" | ||
| documentation = "New York's Empire State Child Credit Worksheet A and B" | ||
| unit = USD | ||
| definition_period = YEAR | ||
| reference = "https://www.tax.ny.gov/pdf/2021/inc/it213i_2021.pdf#page=2" | ||
| defined_for = StateCode.NY | ||
|
|
||
| # Line 8 of Worksheet A, Line 10 of worksheet B | ||
| adds = [ | ||
| # a: Form 1040, Schedule 3, line 1, Foreign tax credit | ||
| "foreign_tax_credit", | ||
| # b: Form 1040, Schedule 3, line 2, Credit for child and dependent care expenses | ||
| "cdcc", | ||
| # c Form 1040, Schedule 3, line 3, Education credits | ||
| "education_tax_credits", | ||
| # d Form 1040, Schedule 3, line 4, Retirement savings contributions credit | ||
| "savers_credit", | ||
| # e Form 1040, Schedule 3, line 6l, Total increase/decrease to reporting year tax | ||
| # f Form 8910, Alternative Motor Vehicle Credit | ||
| # g Form 8936, Qualified Plug-in Electric Drive Motor Vehicle Credit, line 23 | ||
| # h Schedule R, Credit for the Elderly or the Disabled, line 22 | ||
| "elderly_disabled_credit", | ||
| ] |
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.
Uh oh!
There was an error while loading. Please reload this page.