diff --git a/changelog.d/in-ma-wv-claim-of-right.added.md b/changelog.d/in-ma-wv-claim-of-right.added.md new file mode 100644 index 00000000000..d7db62a3a49 --- /dev/null +++ b/changelog.d/in-ma-wv-claim-of-right.added.md @@ -0,0 +1 @@ +Add Indiana's repayment of previously taxed income deduction (IC 6-3-1-3.5(a)(22)), Massachusetts's claim of right deduction (M.G.L. c. 62, s. 3(B)(a)(14)) and West Virginia's IRC 1341 repayments modification, which apply whichever federal method is used. Indiana users who entered a repayment in in_other_subtractions should move it to claim_of_right_repayment, or it counts twice. diff --git a/policyengine_us/parameters/gov/states/in/tax/income/deductions/deductions.yaml b/policyengine_us/parameters/gov/states/in/tax/income/deductions/deductions.yaml index ec0b4336ca0..92a8269d3e8 100644 --- a/policyengine_us/parameters/gov/states/in/tax/income/deductions/deductions.yaml +++ b/policyengine_us/parameters/gov/states/in/tax/income/deductions/deductions.yaml @@ -11,6 +11,8 @@ values: - in_nol - in_unemployment_compensation_deduction - in_other_subtractions + # IC 6-3-1-3.5(a)(22) / IT-40 Schedule 2 (code 630) + - in_claim_of_right_deduction - in_disability_retirement_deduction # IC 6-3-2-9 (code 602) - in_civil_service_annuity_deduction - in_military_retirement_deduction @@ -36,6 +38,8 @@ values: - in_unemployment_compensation_deduction # IC 6-3-2 - in_other_subtractions + # IC 6-3-1-3.5(a)(22) / IT-40 Schedule 2 (code 630) + - in_claim_of_right_deduction # IC 6-3-2-9 (code 602) - in_disability_retirement_deduction # IC 6-3-2-4 (b) @@ -66,6 +70,8 @@ values: - in_unemployment_compensation_deduction # IC 6-3-2 - in_other_subtractions + # IC 6-3-1-3.5(a)(22) / IT-40 Schedule 2 (code 630) + - in_claim_of_right_deduction # IC 6-3-2-9 (code 602) - in_disability_retirement_deduction # IC 6-3-2-4 (b) @@ -98,6 +104,8 @@ values: - in_unemployment_compensation_deduction # IC 6-3-2 - in_other_subtractions + # IC 6-3-1-3.5(a)(22) / IT-40 Schedule 2 (code 630) + - in_claim_of_right_deduction # IC 6-3-2-9 (code 602) - in_disability_retirement_deduction # IC 6-3-2-4 (b) @@ -136,6 +144,8 @@ values: - in_unemployment_compensation_deduction # IC 6-3-2 - in_other_subtractions + # IC 6-3-1-3.5(a)(22) / IT-40 Schedule 2 (code 630) + - in_claim_of_right_deduction # IC 6-3-2-9 (code 602) - in_disability_retirement_deduction # IC 6-3-2-4 (b) @@ -158,5 +168,5 @@ metadata: href: http://iga.in.gov/legislative/laws/2021/ic/titles/006#6-3 - title: U.S. Code href: https://www.law.cornell.edu/uscode/text - - title: 2025 IT-40 Income Tax Form Instruction Booklet, pg. 19 + - title: "2025 IT-40 Income Tax Form Instruction Booklet #page 19,23" href: https://forms.in.gov/Download.aspx?id=16915#page=19 diff --git a/policyengine_us/parameters/gov/states/wv/tax/income/subtractions/claim_of_right/threshold.yaml b/policyengine_us/parameters/gov/states/wv/tax/income/subtractions/claim_of_right/threshold.yaml new file mode 100644 index 00000000000..d184a19dbee --- /dev/null +++ b/policyengine_us/parameters/gov/states/wv/tax/income/subtractions/claim_of_right/threshold.yaml @@ -0,0 +1,16 @@ +description: West Virginia allows the IRC 1341 repayments decreasing modification when the income repaid on the return is more than this amount. +values: + 2017-01-01: 3_000 +metadata: + unit: currency-USD + period: year + label: West Virginia IRC 1341 repayments modification threshold + reference: + - title: "West Virginia 2025 Personal Income Tax Forms and Instructions, Schedule M line 42 #page 5,29" + href: https://tax.wv.gov/Documents/PIT/2025/it140.PersonalIncomeTaxFormsAndInstructions.2025.pdf#page=5 + - title: West Virginia 2020 Personal Income Tax Forms and Instructions, Schedule M line 40 + href: https://tax.wv.gov/Documents/TaxForms/2020/it140.booklet.pdf#page=24 + - title: West Virginia 2017 Personal Income Tax Forms and Instructions, Schedule M line 50 (money paid back under IRC 1341) + href: https://tax.wv.gov/Documents/TaxForms/2017/it140.booklet.pdf#page=23 + - title: "IRS Publication 525 (2025), Repayments: consider the total amount being repaid on the return #page 36-37" + href: https://www.irs.gov/pub/irs-prior/p525--2025.pdf#page=36 diff --git a/policyengine_us/parameters/gov/states/wv/tax/income/subtractions/subtractions.yaml b/policyengine_us/parameters/gov/states/wv/tax/income/subtractions/subtractions.yaml index f73f809186b..2a742d9ee51 100644 --- a/policyengine_us/parameters/gov/states/wv/tax/income/subtractions/subtractions.yaml +++ b/policyengine_us/parameters/gov/states/wv/tax/income/subtractions/subtractions.yaml @@ -9,6 +9,7 @@ values: - military_service_income # Line 34 - salt_refund_income # Line 36 - wv_529_plan_deduction + - wv_claim_of_right_subtraction # Line 42 - wv_senior_citizen_disability_deduction # Line 47 - wv_other_subtractions diff --git a/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/deductions/in_claim_of_right_deduction.yaml b/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/deductions/in_claim_of_right_deduction.yaml new file mode 100644 index 00000000000..ba647d7e75f --- /dev/null +++ b/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/deductions/in_claim_of_right_deduction.yaml @@ -0,0 +1,229 @@ +# IC 6-3-1-3.5(a)(22) and the 2025 IT-40 instructions, deduction 630 (PDF +# page 23): a repayment of income included in Indiana AGI in an earlier year, +# of any amount, whichever federal method applies. + +# The original $73 unemployment deduction minus $58 refigured without the +# repayment leaves $15 excluded: $345 - ($73 - $58) = $330. +- name: Case 1, 2025 IT-40 Example 1, $345 repayment less the $15 decrease in the earlier unemployment deduction. + period: 2025 + input: + people: + head: + age: 40 + claim_of_right_repayment: 345 + in_claim_of_right_repayment_excluded_from_income: 15 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: IN + output: + claim_of_right_section_1341_eligible: false + in_claim_of_right_deduction: 330 + +- name: Case 2, 2025 IT-40 Example 2, $3,400 repaid with the federal credit. + period: 2025 + input: + people: + head: + age: 40 + claim_of_right_repayment: 3_400 + tax_units: + tax_unit: + members: [head] + claim_of_right_credit_applies: true + households: + household: + members: [head] + state_code: IN + output: + in_claim_of_right_deduction: 3_400 + +- name: Case 3, repaid Social Security that Indiana never taxed gives no deduction. + period: 2025 + input: + people: + head: + age: 70 + claim_of_right_repayment: 4_000 + in_claim_of_right_repayment_excluded_from_income: 4_000 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: IN + output: + in_claim_of_right_deduction: 0 + +- name: Case 4, the federal deduction method with the standard deduction still gets the Indiana deduction. + period: 2025 + input: + people: + head: + age: 40 + claim_of_right_repayment: 10_000 + tax_units: + tax_unit: + members: [head] + claim_of_right_credit_applies: false + tax_unit_itemizes: false + households: + household: + members: [head] + state_code: IN + output: + in_claim_of_right_deduction: 10_000 + +- name: Case 5, a joint return deducts both spouses' repayments but not a dependent's. + period: 2025 + input: + people: + head: + age: 40 + claim_of_right_repayment: 300 + spouse: + age: 40 + claim_of_right_repayment: 3_000 + in_claim_of_right_repayment_excluded_from_income: 500 + child: + age: 17 + claim_of_right_repayment: 1_000 + tax_units: + tax_unit: + members: [head, spouse, child] + households: + household: + members: [head, spouse, child] + state_code: IN + output: + in_claim_of_right_deduction: 2_800 + +- name: Case 6, outside Indiana. + period: 2025 + input: + people: + head: + age: 40 + claim_of_right_repayment: 10_000 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: OH + output: + in_claim_of_right_deduction: 0 + +# Wages $40,000, repays $345 (Example 1 without an unemployment deduction). +# IT-40: Indiana AGI $40,000 - $345 deduction - $1,000 exemption = $38,655; +# state tax at 3% = $1,159.65. +- name: Case 7, the deduction lowers Indiana AGI and state tax. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 40 + employment_income: 40_000 + claim_of_right_repayment: 345 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: IN + output: + in_claim_of_right_deduction: 345 + in_deductions: 345 + in_agi: 38_655 + in_agi_tax: 1_159.65 + +# Wages $40,000, repays $10,000: Indiana AGI $40,000 - $10,000 - $1,000 = +# $29,000; tax at 3% = $870, whichever federal method applies. + +- name: Case 8, Indiana tax is $870 under the federal credit method. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 40 + employment_income: 40_000 + claim_of_right_repayment: 10_000 + tax_units: + tax_unit: + members: [head] + claim_of_right_credit_applies: true + households: + household: + members: [head] + state_code: IN + output: + in_agi_tax: 870 + +- name: Case 9, Indiana tax is $870 under the federal deduction method on a return that itemizes. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 40 + employment_income: 40_000 + claim_of_right_repayment: 10_000 + tax_units: + tax_unit: + members: [head] + claim_of_right_credit_applies: false + tax_unit_itemizes: true + households: + household: + members: [head] + state_code: IN + output: + in_agi_tax: 870 + +- name: Case 10, Indiana tax is $870 under the federal deduction method on a return taking the standard deduction. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 40 + employment_income: 40_000 + claim_of_right_repayment: 10_000 + tax_units: + tax_unit: + members: [head] + claim_of_right_credit_applies: false + tax_unit_itemizes: false + households: + household: + members: [head] + state_code: IN + output: + in_agi_tax: 870 + +- name: Case 11, the same amount entered as an existing other deduction gives the same Indiana tax. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 40 + employment_income: 40_000 + tax_units: + tax_unit: + members: [head] + in_other_subtractions: 10_000 + households: + household: + members: [head] + state_code: IN + output: + in_agi_tax: 870 diff --git a/policyengine_us/tests/policy/baseline/gov/states/ma/tax/income/deductions/ma_claim_of_right_deduction.yaml b/policyengine_us/tests/policy/baseline/gov/states/ma/tax/income/deductions/ma_claim_of_right_deduction.yaml new file mode 100644 index 00000000000..b0ffeab101c --- /dev/null +++ b/policyengine_us/tests/policy/baseline/gov/states/ma/tax/income/deductions/ma_claim_of_right_deduction.yaml @@ -0,0 +1,209 @@ +# M.G.L. c. 62, s. 3(B)(a)(14) and the 2025 Form 1 instructions, Schedule Y +# line 14 (PDF page 21): a repayment of income previously included in +# Massachusetts taxable income, of any amount, whichever federal method +# applies. + +- name: Case 1, a repayment of $3,000 or less is deductible. + period: 2025 + input: + people: + head: + age: 40 + claim_of_right_repayment: 2_000 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: MA + output: + claim_of_right_section_1341_eligible: false + ma_claim_of_right_deduction: 2_000 + +- name: Case 2, the federal credit method still gets the Massachusetts deduction. + period: 2025 + input: + people: + head: + age: 40 + claim_of_right_repayment: 10_000 + tax_units: + tax_unit: + members: [head] + claim_of_right_credit_applies: true + households: + household: + members: [head] + state_code: MA + output: + ma_claim_of_right_deduction: 10_000 + +- name: Case 3, income Massachusetts did not tax when received is not deducted. + period: 2025 + input: + people: + head: + age: 40 + claim_of_right_repayment: 10_000 + ma_claim_of_right_repayment_excluded_from_income: 2_500 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: MA + output: + ma_claim_of_right_deduction: 7_500 + +- name: Case 4, a joint return deducts both spouses' repayments but not a dependent's. + period: 2025 + input: + people: + head: + age: 40 + claim_of_right_repayment: 1_000 + spouse: + age: 40 + claim_of_right_repayment: 1_500 + child: + age: 17 + claim_of_right_repayment: 700 + tax_units: + tax_unit: + members: [head, spouse, child] + households: + household: + members: [head, spouse, child] + state_code: MA + output: + ma_claim_of_right_deduction: 2_500 + +- name: Case 5, outside Massachusetts. + period: 2025 + input: + people: + head: + age: 40 + claim_of_right_repayment: 10_000 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: NH + output: + ma_claim_of_right_deduction: 0 + +# Wages $60,000, repays $5,000. Deductions: Social Security and Medicare (FICA) +# paid, capped at $2,000 (Form 1 line 11a), plus the $5,000 claim of right +# deduction (Schedule Y line 14) = $7,000. Form 1: Part B income $60,000 - +# $7,000 = $53,000, less the $4,400 personal exemption = $48,600 Part B taxable +# income. +- name: Case 6, the deduction lowers Part B taxable income. + period: 2025 + input: + people: + head: + age: 40 + employment_income: 60_000 + claim_of_right_repayment: 5_000 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: MA + output: + ma_claim_of_right_deduction: 5_000 + ma_part_b_taxable_income_deductions: 7_000 + ma_part_b_taxable_income_before_exemption: 53_000 + ma_part_b_taxable_income: 48_600 + +# Wages $60,000, repays $10,000: Part B income $60,000 - ($2,000 FICA on Form 1 +# line 11a + $10,000 on Schedule Y line 14) - $4,400 = $43,600, whichever +# federal method applies. + +- name: Case 7, Part B taxable income is $43,600 under the federal credit method. + period: 2025 + input: + people: + head: + age: 40 + employment_income: 60_000 + claim_of_right_repayment: 10_000 + tax_units: + tax_unit: + members: [head] + claim_of_right_credit_applies: true + households: + household: + members: [head] + state_code: MA + output: + ma_part_b_taxable_income: 43_600 + +- name: Case 8, Part B taxable income is $43,600 under the federal deduction method on a return that itemizes. + period: 2025 + input: + people: + head: + age: 40 + employment_income: 60_000 + claim_of_right_repayment: 10_000 + tax_units: + tax_unit: + members: [head] + claim_of_right_credit_applies: false + tax_unit_itemizes: true + households: + household: + members: [head] + state_code: MA + output: + ma_part_b_taxable_income: 43_600 + +- name: Case 9, Part B taxable income is $43,600 under the federal deduction method on a return taking the standard deduction. + period: 2025 + input: + people: + head: + age: 40 + employment_income: 60_000 + claim_of_right_repayment: 10_000 + tax_units: + tax_unit: + members: [head] + claim_of_right_credit_applies: false + tax_unit_itemizes: false + households: + household: + members: [head] + state_code: MA + output: + ma_part_b_taxable_income: 43_600 + +# Wages $60,000, repays $60,000: Part B income $60,000 - ($2,000 FICA on Form 1 +# line 11a + $60,000 on Schedule Y line 14) is negative, so Part B income before +# the exemption is zero. +- name: Case 10, the deduction lowers Part B income only to zero. + period: 2025 + input: + people: + head: + age: 40 + employment_income: 60_000 + claim_of_right_repayment: 60_000 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: MA + output: + ma_claim_of_right_deduction: 60_000 + ma_part_b_taxable_income_before_exemption: 0 diff --git a/policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/subtractions/wv_claim_of_right_subtraction.yaml b/policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/subtractions/wv_claim_of_right_subtraction.yaml new file mode 100644 index 00000000000..e44586ef0ce --- /dev/null +++ b/policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/subtractions/wv_claim_of_right_subtraction.yaml @@ -0,0 +1,223 @@ +# 2025 IT-140 instructions, Schedule M line 42 (PDF page 29): "The amount of +# income repaid MUST be more than $3,000.00 to qualify." + +- name: Case 1, a repayment over $3,000 is a decreasing modification. + period: 2025 + input: + people: + head: + age: 40 + claim_of_right_repayment: 10_000 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: WV + output: + wv_claim_of_right_subtraction: 10_000 + wv_subtractions: 10_000 + +- name: Case 2, a repayment of $3,000 does not qualify. + period: 2025 + input: + people: + head: + age: 40 + claim_of_right_repayment: 3_000 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: WV + output: + wv_claim_of_right_subtraction: 0 + +- name: Case 3, the federal credit method does not change the modification. + period: 2025 + input: + people: + head: + age: 40 + claim_of_right_repayment: 10_000 + tax_units: + tax_unit: + members: [head] + claim_of_right_credit_applies: true + households: + household: + members: [head] + state_code: WV + output: + wv_claim_of_right_subtraction: 10_000 + +- name: Case 4, spouses' repayments count together toward $3,000; a dependent's does not. + period: 2025 + input: + people: + head: + age: 40 + claim_of_right_repayment: 2_000 + spouse: + age: 40 + claim_of_right_repayment: 2_000 + child: + age: 17 + claim_of_right_repayment: 5_000 + tax_units: + tax_unit: + members: [head, spouse, child] + households: + household: + members: [head, spouse, child] + state_code: WV + output: + wv_claim_of_right_subtraction: [2_000, 2_000, 0] + wv_subtractions: 4_000 + +- name: Case 5, outside West Virginia. + period: 2025 + input: + people: + head: + age: 40 + claim_of_right_repayment: 10_000 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: VA + output: + wv_claim_of_right_subtraction: 0 + +# Wages $40,000, repays $10,000. IT-140: West Virginia AGI $40,000 - $10,000 = +# $30,000; less the $2,000 exemption = $28,000. +- name: Case 6, the modification lowers West Virginia AGI and taxable income. + period: 2025 + input: + people: + head: + age: 40 + employment_income: 40_000 + claim_of_right_repayment: 10_000 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: WV + output: + wv_agi: 30_000 + wv_taxable_income: 28_000 + +# Age 70, wages $9,000, repays $4,000. Schedule M line 47, box (c), is "all +# income ... not reported on lines 35 through 48": the $9,000 of wages, capped +# at $8,000; W. Va. Code 11-21-12(c)(9) counts income included in federal AGI. +# The repayment is not income, so it does not reduce box (c). Total decreasing +# modifications $4,000 + $8,000 = $12,000. +- name: Case 7, the repayment does not reduce the senior citizen modification's base. + period: 2025 + input: + people: + head: + age: 70 + employment_income: 9_000 + claim_of_right_repayment: 4_000 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: WV + output: + wv_claim_of_right_subtraction: 4_000 + wv_senior_citizen_disability_deduction_person: 8_000 + wv_subtractions: 12_000 + # $9,000 - $12,000; taxable income does not go below zero. + wv_agi: -3_000 + wv_taxable_income: 0 + +- name: Case 8, West Virginia taxable income is $28,000 under the federal credit method. + period: 2025 + input: + people: + head: + age: 40 + employment_income: 40_000 + claim_of_right_repayment: 10_000 + tax_units: + tax_unit: + members: [head] + claim_of_right_credit_applies: true + households: + household: + members: [head] + state_code: WV + output: + wv_taxable_income: 28_000 + +- name: Case 9, West Virginia taxable income is $28,000 under the federal deduction method on a return that itemizes. + period: 2025 + input: + people: + head: + age: 40 + employment_income: 40_000 + claim_of_right_repayment: 10_000 + tax_units: + tax_unit: + members: [head] + claim_of_right_credit_applies: false + tax_unit_itemizes: true + households: + household: + members: [head] + state_code: WV + output: + wv_taxable_income: 28_000 + +- name: Case 10, West Virginia taxable income is $28,000 under the federal deduction method on a return taking the standard deduction. + period: 2025 + input: + people: + head: + age: 40 + employment_income: 40_000 + claim_of_right_repayment: 10_000 + tax_units: + tax_unit: + members: [head] + claim_of_right_credit_applies: false + tax_unit_itemizes: false + households: + household: + members: [head] + state_code: WV + output: + wv_taxable_income: 28_000 + +# Schedule M line 42 requires more than $3,000: one dollar above qualifies. +- name: Case 11, a repayment of $3,001 qualifies in full. + period: 2025 + input: + people: + head: + age: 40 + claim_of_right_repayment: 3_001 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: WV + output: + wv_claim_of_right_subtraction: 3_001 + wv_subtractions: 3_001 diff --git a/policyengine_us/tests/unit/test_claim_of_right_section_1341_properties.py b/policyengine_us/tests/unit/test_claim_of_right_section_1341_properties.py index 022de486265..c693c2a1ac8 100644 --- a/policyengine_us/tests/unit/test_claim_of_right_section_1341_properties.py +++ b/policyengine_us/tests/unit/test_claim_of_right_section_1341_properties.py @@ -40,10 +40,12 @@ its payment is the prior-year increase when the credit method applies and zero otherwise. -Last, one itemizing household per state: the credit method reduces the federal -tax deductible in Alabama, Missouri and Oregon, so their state taxes can rise. -Other states' taxes stay unchanged for this household (no state input is -supplied). The deduction method leaves Arizona's and Kansas's taxes unchanged. +Last, one itemizing household per state: with the credit method fixed, the +repayment reduces the federal tax deductible in Alabama, Missouri and Oregon, so +their state taxes can rise; it lowers the tax of each state listed in +STATES_WITH_RELIEF_UNDER_THE_CREDIT whose rule is in the model; and it leaves +every other state's income tax unchanged (section 1341(b)(3)). With the +deduction method fixed it leaves Arizona's and Kansas's taxes unchanged. """ import gc @@ -89,6 +91,28 @@ # deduction: A.R.S. 43-1021(9) and K.S.A. 79-32,120(a). # California carries the federal deduction in Schedule CA column A. STATES_WITHOUT_THE_DEDUCTION = ["AZ", "KS"] +# States whose own claim of right relief applies when federal tax is computed +# with the section 1341 credit, and the variable that carries it. Under the +# credit method these lower the household's state tax. A listed state whose +# variable is not in the model yet must not change. +STATES_WITH_RELIEF_UNDER_THE_CREDIT = { + # Ark. Code 26-51-457: a deduction whichever federal method applies. + "AR": "ar_claim_of_right_deduction", + # Act 56, SLH 2023: section 1341 computed on Hawaii tax, independently. + "HI": "hi_claim_of_right_credit", + # 35 ILCS 5/203(a)(2)(P): the deduction used to compute the federal credit. + "IL": "il_claim_of_right_subtraction", + # IC 6-3-1-3.5(a)(22). + "IN": "in_claim_of_right_deduction", + # M.G.L. c. 62, s. 3(B)(a)(14). + "MA": "ma_claim_of_right_deduction", + # N.J.S.A. 54A:5-2 and TAM 2011-7: an offset within the income category. + "NJ": "nj_claim_of_right_offset", + # R.C. 5747.01(A)(12). + "OH": "oh_claim_of_right_deduction", + # IT-140 Schedule M, IRC 1341 Repayments. + "WV": "wv_claim_of_right_subtraction", +} BRANCHES = [ "income_tax_if_claiming_claim_of_right_deduction", "income_tax_if_claiming_claim_of_right_credit", @@ -304,8 +328,8 @@ def test_north_carolina_follows_the_federal_method(results, year): ) -def state_income_tax(year, repayment, method=None): - """State income tax of an itemizing single filer in each state.""" +def state_simulation(year, repayment, method=None): + """An itemizing single filer in each state.""" situation = {"people": {}, "tax_units": {}, "households": {}} for i, state in enumerate(STATES): situation["people"][f"p{i}"] = { @@ -326,20 +350,32 @@ def state_income_tax(year, repayment, method=None): "members": [f"p{i}"], "state_code": {year: state}, } - simulation = Simulation(situation=situation) + return Simulation(situation=situation) + + +def state_income_tax(simulation, year): return np.asarray(simulation.calculate("state_income_tax", year)) def test_states_under_each_federal_method(): # One year: each of these three simulations computes every state's tax. year = YEARS[0] - without_repayment = state_income_tax(year, 0) - with_credit = state_income_tax(year, 10_000, method=True) + without_repayment = state_income_tax(state_simulation(year, 0), year) + credit = state_simulation(year, 10_000, method=True) + with_credit = state_income_tax(credit, year) + variables = credit.tax_benefit_system.variables + relief = np.isin( + STATES, + [ + state + for state, variable in STATES_WITH_RELIEF_UNDER_THE_CREDIT.items() + if variable in variables + ], + ) federal_tax_deduction_states = np.isin(STATES, ["AL", "MO", "OR"]) + unchanged = ~relief & ~federal_tax_deduction_states np.testing.assert_allclose( - with_credit[~federal_tax_deduction_states], - without_repayment[~federal_tax_deduction_states], - atol=TOLERANCE, + with_credit[unchanged], without_repayment[unchanged], atol=TOLERANCE ) assert np.all( with_credit[federal_tax_deduction_states] @@ -349,7 +385,12 @@ def test_states_under_each_federal_method(): with_credit[federal_tax_deduction_states] > without_repayment[federal_tax_deduction_states] + TOLERANCE ) - with_deduction = state_income_tax(year, 10_000, method=False) + assert np.all(with_credit[relief] < without_repayment[relief] - 1), ( + "each listed state's own rule should lower its tax under the credit method" + ) + with_deduction = state_income_tax( + state_simulation(year, 10_000, method=False), year + ) assert np.any(np.abs(with_deduction - without_repayment) > 1), ( "the deduction should reach the states that follow federal itemized deductions" ) diff --git a/policyengine_us/variables/gov/states/in/tax/income/deductions/claim_of_right/in_claim_of_right_deduction.py b/policyengine_us/variables/gov/states/in/tax/income/deductions/claim_of_right/in_claim_of_right_deduction.py new file mode 100644 index 00000000000..296c841f044 --- /dev/null +++ b/policyengine_us/variables/gov/states/in/tax/income/deductions/claim_of_right/in_claim_of_right_deduction.py @@ -0,0 +1,37 @@ +from policyengine_us.model_api import * + + +class in_claim_of_right_deduction(Variable): + value_type = float + entity = TaxUnit + label = "Indiana repayment of previously taxed income deduction" + unit = USD + documentation = ( + "Indiana deduction for repaying income included in Indiana adjusted " + "gross income in an earlier year under a claim of right (IT-40 " + "Schedule 2, code 630). It applies to repayments of any amount, " + "whether the federal return deducts the repayment, claims the section " + "1341 credit or takes the standard deduction. IC 6-3-1-3.5(a)(22) " + "names the amount and limits it to income previously included in " + "adjusted gross income. The IT-40 general rule asks for federal " + "eligibility, but the footnote to its Example 1 allows a repayment " + "that the federal return cannot deduct." + ) + definition_period = YEAR + reference = ( + # IC 6-3-1-3.5(a)(22), as amended by HEA 1001-2021, section 71 + "https://www.in.gov/sba/files/HB1001-Final.pdf#page=117", + # 2018 IT-40 instructions, deduction 630 + "https://forms.in.gov/Download.aspx?id=13952#page=23", + # 2025 IT-40 instructions, deduction 630 + "https://forms.in.gov/Download.aspx?id=16915#page=23", + ) + defined_for = StateCode.IN + + def formula(tax_unit, period, parameters): + person = tax_unit.members + repayment = person("claim_of_right_repayment", period) + excluded = person("in_claim_of_right_repayment_excluded_from_income", period) + # Dependents' repayments belong on their own returns. + head_or_spouse = person("is_tax_unit_head_or_spouse", period) + return tax_unit.sum(max_(repayment - excluded, 0) * head_or_spouse) diff --git a/policyengine_us/variables/gov/states/in/tax/income/deductions/claim_of_right/in_claim_of_right_repayment_excluded_from_income.py b/policyengine_us/variables/gov/states/in/tax/income/deductions/claim_of_right/in_claim_of_right_repayment_excluded_from_income.py new file mode 100644 index 00000000000..f7045243f5a --- /dev/null +++ b/policyengine_us/variables/gov/states/in/tax/income/deductions/claim_of_right/in_claim_of_right_repayment_excluded_from_income.py @@ -0,0 +1,25 @@ +from policyengine_us.model_api import * + + +class in_claim_of_right_repayment_excluded_from_income(Variable): + value_type = float + entity = Person + label = "Claim of right repayment not included in Indiana income when received" + unit = USD + documentation = ( + "Part of claim_of_right_repayment that was not included in Indiana " + "adjusted gross income in the earlier year it was received, such as " + "repaid Social Security benefits, or the part of the earlier year's " + "Indiana unemployment compensation deduction that the repaid amount " + "produced: the deduction claimed minus the deduction refigured without " + "the repaid amount (IT-40 deduction 630, Example 1: $73 - $58 = $15). " + "Indiana's repayment deduction excludes it." + ) + definition_period = YEAR + reference = ( + # IC 6-3-1-3.5(a)(22) + "https://www.in.gov/sba/files/HB1001-Final.pdf#page=117", + # 2025 IT-40 instructions, deduction 630, unemployment compensation note + "https://forms.in.gov/Download.aspx?id=16915#page=23", + ) + defined_for = StateCode.IN diff --git a/policyengine_us/variables/gov/states/in/tax/income/deductions/in_other_subtractions.py b/policyengine_us/variables/gov/states/in/tax/income/deductions/in_other_subtractions.py index 51c7d55b8ed..50e879adcd6 100644 --- a/policyengine_us/variables/gov/states/in/tax/income/deductions/in_other_subtractions.py +++ b/policyengine_us/variables/gov/states/in/tax/income/deductions/in_other_subtractions.py @@ -11,7 +11,7 @@ class in_other_subtractions(Variable): documentation = ( "Indiana other deductions reported on Form IT-40, Schedule 2, Line 11 " "(Other Deductions), entered as a positive amount. Excludes deduction codes " - "PolicyEngine computes separately: 601, 602, 621, 632, and 643, and for " + "PolicyEngine computes separately: 601, 602, 621, 630, 632, and 643, and for " "2026 only the tip, overtime, and car loan interest deductions." ) # PDF pages 19-24 diff --git a/policyengine_us/variables/gov/states/ma/tax/income/deductions/claim_of_right/ma_claim_of_right_deduction.py b/policyengine_us/variables/gov/states/ma/tax/income/deductions/claim_of_right/ma_claim_of_right_deduction.py new file mode 100644 index 00000000000..d56d01b8502 --- /dev/null +++ b/policyengine_us/variables/gov/states/ma/tax/income/deductions/claim_of_right/ma_claim_of_right_deduction.py @@ -0,0 +1,34 @@ +from policyengine_us.model_api import * + + +class ma_claim_of_right_deduction(Variable): + value_type = float + entity = TaxUnit + label = "Massachusetts claim of right deduction" + unit = USD + documentation = ( + "Massachusetts Part B deduction for repaying income included in " + "Massachusetts taxable income in an earlier year under a claim of " + "right (Schedule Y, line 14). It applies to repayments of any amount, " + "whichever federal method applies." + ) + definition_period = YEAR + reference = ( + # M.G.L. c. 62, s. 3(B)(a)(14) + "https://malegislature.gov/Laws/GeneralLaws/PartI/TitleIX/Chapter62/Section3", + # DOR explicitly allows the deduction without regard to the amount paid. + "https://www.mass.gov/info-details/differences-between-ma-and-federal-tax-law-for-personal-income", + "https://www.mass.gov/technical-information-release/tir-06-4-deduction-for-income-upon-which-taxes-have-been-paid-under-a-claim-of-right", + # 2025 Form 1 instructions, Schedule Y line 14 + "https://taxsim.nber.org/historical_state_tax_forms/MA/2025/ma-dor-2025-inc-form-1-inst.pdf#page=21", + "https://taxsim.nber.org/historical_state_tax_forms/MA/2025/ma-dor-2025-inc-sch-y.pdf", + ) + defined_for = StateCode.MA + + def formula(tax_unit, period, parameters): + person = tax_unit.members + repayment = person("claim_of_right_repayment", period) + excluded = person("ma_claim_of_right_repayment_excluded_from_income", period) + # Dependents' repayments belong on their own returns. + head_or_spouse = person("is_tax_unit_head_or_spouse", period) + return tax_unit.sum(max_(repayment - excluded, 0) * head_or_spouse) diff --git a/policyengine_us/variables/gov/states/ma/tax/income/deductions/claim_of_right/ma_claim_of_right_repayment_excluded_from_income.py b/policyengine_us/variables/gov/states/ma/tax/income/deductions/claim_of_right/ma_claim_of_right_repayment_excluded_from_income.py new file mode 100644 index 00000000000..d36617954e2 --- /dev/null +++ b/policyengine_us/variables/gov/states/ma/tax/income/deductions/claim_of_right/ma_claim_of_right_repayment_excluded_from_income.py @@ -0,0 +1,21 @@ +from policyengine_us.model_api import * + + +class ma_claim_of_right_repayment_excluded_from_income(Variable): + value_type = float + entity = Person + label = ( + "Claim of right repayment not included in Massachusetts income when received" + ) + unit = USD + documentation = ( + "Part of claim_of_right_repayment that was not included in " + "Massachusetts taxable income in the earlier year it was received. " + "Massachusetts's claim of right deduction excludes it." + ) + definition_period = YEAR + reference = ( + # M.G.L. c. 62, s. 3(B)(a)(14)(i) + "https://malegislature.gov/Laws/GeneralLaws/PartI/TitleIX/Chapter62/Section3", + ) + defined_for = StateCode.MA diff --git a/policyengine_us/variables/gov/states/ma/tax/income/taxable_income/ma_part_b_taxable_income_deductions.py b/policyengine_us/variables/gov/states/ma/tax/income/taxable_income/ma_part_b_taxable_income_deductions.py index 2a338d9cfcc..8a060af1b78 100644 --- a/policyengine_us/variables/gov/states/ma/tax/income/taxable_income/ma_part_b_taxable_income_deductions.py +++ b/policyengine_us/variables/gov/states/ma/tax/income/taxable_income/ma_part_b_taxable_income_deductions.py @@ -51,12 +51,15 @@ def formula(tax_unit, period, parameters): ) # (B)(a)(13): Charitable contributions deduction. charitable_deduction = tax_unit("charitable_deduction", period) - # (B)(a)(14): 529 plan contribution deduction. + # (B)(a)(14): Claim of right deduction. + claim_of_right_deduction = tax_unit("ma_claim_of_right_deduction", period) + # (B)(a)(19): 529 plan contribution deduction. plan_529_deduction = tax_unit("ma_529_deduction", period) return ( fica + bank_interest_deduction + rent_deduction + charitable_deduction + + claim_of_right_deduction + plan_529_deduction ) diff --git a/policyengine_us/variables/gov/states/wv/tax/income/subtractions/claim_of_right/wv_claim_of_right_subtraction.py b/policyengine_us/variables/gov/states/wv/tax/income/subtractions/claim_of_right/wv_claim_of_right_subtraction.py new file mode 100644 index 00000000000..09a0ac3f996 --- /dev/null +++ b/policyengine_us/variables/gov/states/wv/tax/income/subtractions/claim_of_right/wv_claim_of_right_subtraction.py @@ -0,0 +1,36 @@ +from policyengine_us.model_api import * + + +class wv_claim_of_right_subtraction(Variable): + value_type = float + entity = Person + label = "West Virginia IRC 1341 repayments modification" + unit = USD + documentation = ( + "West Virginia decreasing modification for repaying income received " + "in an earlier year under a claim of right (Schedule M, IRC 1341 " + "Repayments). The amount repaid must be more than $3,000; the " + "instructions point to IRS Publication 525, which counts the total " + "repaid on the return, so the model tests the head's and spouse's " + "total. Schedule M has a column for each spouse; the model puts each " + "spouse's own repayment in their column. The instructions do not " + "depend on the federal method." + ) + definition_period = YEAR + reference = ( + # 2025 IT-140 instructions, Schedule M line 42 + "https://tax.wv.gov/Documents/PIT/2025/it140.PersonalIncomeTaxFormsAndInstructions.2025.pdf#page=29", + # 2021 IT-140 instructions, Schedule M line 40 + "https://tax.wv.gov/Documents/TaxForms/2021/it140.booklet.pdf#page=24", + # 2017 IT-140 instructions, Schedule M line 50 + "https://tax.wv.gov/Documents/TaxForms/2017/it140.booklet.pdf#page=23", + ) + defined_for = StateCode.WV + + def formula(person, period, parameters): + p = parameters(period).gov.states.wv.tax.income.subtractions.claim_of_right + total = person.tax_unit("tax_unit_claim_of_right_repayment", period) + repayment = person("claim_of_right_repayment", period) + # Dependents' repayments belong on their own returns. + head_or_spouse = person("is_tax_unit_head_or_spouse", period) + return where((total > p.threshold) & head_or_spouse, repayment, 0) diff --git a/source_conflicts/candidates.yaml b/source_conflicts/candidates.yaml index 528def1524c..7617b3d5d3d 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -3795,22 +3795,22 @@ candidates: citation: 2018-2025 IT-40 instructions, code 630; 2025 Example 1 footnote url: https://forms.in.gov/Download.aspx?id=16915#page=23 readings: - statute: The cross-reference can require an allowable federal deduction, excluding small nonbusiness repayments - disallowed federally from 2018. - other: Allow any repayment amount independently of the federal method, limited to previously taxed income and - adjusted for lost unemployment deductions. + statute: The paragraph subtracts an amount as described in section 1341(a)(2), to the extent previously included in + adjusted gross income, so a repayment qualifies whether or not federal law allows its deduction. + other: Read through IC 6-3-1-11(b), the reference could import federal allowability, excluding small nonbusiness + repayments disallowed federally from 2018. The IT-40 general rule asks for federal eligibility, but its 2025 + Example 1 footnote allows a repayment the federal return cannot deduct. example: The 2025 instructions deduct $345 less $15 of lost unemployment deduction, giving $330; a $3,400 credit-method repayment gives a $3,400 state deduction. pe_us: - follows: conflicting-source + follows: statute code: - policyengine_us/parameters/gov/states/in/tax/income/deductions/deductions.yaml - - policyengine_us/variables/gov/states/in/tax/income/deductions/in_other_subtractions.py + - policyengine_us/variables/gov/states/in/tax/income/deductions/claim_of_right/in_claim_of_right_deduction.py prs: - https://github.com/PolicyEngine/policyengine-us/pull/10196 - state: unreviewed - note: 'The statute-first rule requires changing the instructions-based scope if the federal-eligibility reading - is verified; the 2026 statutory text remains unverified. Code not yet on main: gov/states/in/tax/income/deductions/in_claim_of_right_deduction.yaml.' + state: ruled + note: Ruled in November 2026 as built, in line with the Massachusetts ruling on a similar reference. - id: us-in:liheap-income-floor-vs-smi-limit program: liheap years: @@ -4469,19 +4469,20 @@ candidates: 2026) url: https://web.archive.org/web/20260211211815/https://www.mass.gov/info-details/differences-between-ma-and-federal-tax-law-for-personal-income readings: - statute: The cross-reference can require an allowable federal deduction, excluding small repayments disallowed - federally from 2018. - other: Allow any amount previously included in Massachusetts taxable income unless otherwise deductible, independently - of the federal method. + statute: The paragraph stands alone. Any amount previously included in Massachusetts taxable income counts unless + otherwise deductible, independently of the federal method. + other: DOR guidance agrees. A contrary reading would import federal allowability through the section 1341(a)(2) + cross-reference, excluding small repayments disallowed federally from 2018. example: With $60,000 wages and a $2,000 repayment, Massachusetts tax falls from $2,680 to $2,580. pe_us: - follows: conflicting-source - code: [] + follows: statute + code: + - policyengine_us/variables/gov/states/ma/tax/income/deductions/claim_of_right/ma_claim_of_right_deduction.py prs: - https://github.com/PolicyEngine/policyengine-us/pull/10196 - state: unreviewed - note: 'The statute-first rule requires changing the guidance-based scope if the cross-reference imports federal - deduction eligibility; verify that interpretation first. Code not yet on main: gov/states/ma/tax/income/deductions/ma_claim_of_right_deduction.yaml.' + state: ruled + note: Ruled in October 2026 as built. The paragraph states its own limits, while paragraph (13) expressly imports + federal conditions. - id: us-ma:connectorcare-income-bands-2026 program: connectorcare years: @@ -11612,13 +11613,12 @@ candidates: follows: gap-fill code: - policyengine_us/parameters/gov/states/wv/tax/income/subtractions/subtractions.yaml + - policyengine_us/variables/gov/states/wv/tax/income/subtractions/claim_of_right/wv_claim_of_right_subtraction.py prs: - https://github.com/PolicyEngine/policyengine-us/pull/10196 - state: unreviewed - note: 'Retain as a disputable gap-fill; identify statutory authority, resolve the study''s citation, and verify - threshold and federal-method conditions by year. Code not yet on main: gov/states/wv/tax/income/subtractions/wv_claim_of_right_subtraction.yaml, - policyengine_us/variables/gov/states/wv/tax/income/subtractions/wv_subtractions.py, wv_claim_of_right_subtraction, - gov.states.wv.tax.income.subtractions.claim_of_right.threshold.' + state: ruled + note: Ruled in November 2026 as a gap-fill, because the statute does not address repayments and the instructions + provide the modification. Statutory authority remains unidentified, and the study's citation remains unresolved. - id: us-wv:liheap-income-limit-above-federal-ceiling program: liheap years: