diff --git a/changelog.d/wv-529-senior-modification.fixed.md b/changelog.d/wv-529-senior-modification.fixed.md new file mode 100644 index 00000000000..907decb3255 --- /dev/null +++ b/changelog.d/wv-529-senior-modification.fixed.md @@ -0,0 +1 @@ +Count West Virginia 529 contributions in addition to the senior citizen or disability modification. diff --git a/policyengine_us/parameters/gov/states/wv/tax/income/subtractions/senior_citizen_disability_deduction/excluded_income_sources.yaml b/policyengine_us/parameters/gov/states/wv/tax/income/subtractions/senior_citizen_disability_deduction/excluded_income_sources.yaml index 63c9c52dc00..1f08b289296 100644 --- a/policyengine_us/parameters/gov/states/wv/tax/income/subtractions/senior_citizen_disability_deduction/excluded_income_sources.yaml +++ b/policyengine_us/parameters/gov/states/wv/tax/income/subtractions/senior_citizen_disability_deduction/excluded_income_sources.yaml @@ -8,10 +8,8 @@ values: # Line numbers below are from the 2025 form. - military_service_income # Line 36 - salt_refund_income # Line 38 - # Line 39 is a contribution deduction, not an income receipt. Its amount - # removes income within the form's excluded range. Use the contributor's - # own amount rather than projecting the tax-unit 529 deduction to spouses. - - investment_in_529_plan_indv # Line 39 + # Filers deduct 529 contribution payments separately under section + # 11-21-12a; only income receipts enter this list. metadata: unit: list @@ -26,3 +24,9 @@ metadata: href: https://tax.wv.gov/Documents/TaxForms/2018/it140.booklet.pdf#page=5 - title: West Virginia Personal Income Tax Forms and Instructions 2014, Schedule M line 52 href: https://tax.wv.gov/Documents/TaxForms/2014/it140.booklet.pdf#page=9 + - title: W. Va. Code section 11-21-12(c)(9) + href: https://code.wvlegislature.gov/11-21-12/ + - title: W. Va. Code section 11-21-12a, additional college-savings modification + href: https://code.wvlegislature.gov/11-21-12a/ + - title: West Virginia 2000 HB4679, section 11-21-12a + href: https://code.wvlegislature.gov/signed_bills/2000/2000-RS-HB4679-SUB%20ENR_signed.pdf#page=3 diff --git a/policyengine_us/tests/core/test_wv_senior_citizen_disability_deduction.py b/policyengine_us/tests/core/test_wv_senior_citizen_disability_deduction.py index 359eed4a6d0..a3cc1f8c650 100644 --- a/policyengine_us/tests/core/test_wv_senior_citizen_disability_deduction.py +++ b/policyengine_us/tests/core/test_wv_senior_citizen_disability_deduction.py @@ -1,16 +1,10 @@ -"""Hypothesis coverage of Schedule M's person-level subtraction limits. +"""Check person-level subtraction limits and contribution independence. -The 2025 IT-140 Schedule M line 47, boxes (c) and (d), first caps the income -remaining after lines 35-46 at $8,000, then subtracts the person's own -lines 29-34 modifications. These properties exercise combinations that the -worked YAML examples do not enumerate, using the real model and independent -conservation and spouse-isolation checks. - -The form interpretation includes line 39's deductible 529 contribution in -the excluded Schedule M amounts: it removes income already deducted on that -line from the remainder in box (c), although a contribution is not an income -receipt. Compatibility with the old formula therefore means no excluded -Schedule M amounts, including no deductible 529 contribution. +Eligible residents cap income after excluding modified income receipts at +$8,000, then subtract their own Schedule M lines 29-34 modifications. +They deduct college-savings contributions in addition to the section +11-21-12(c) modifications under section 11-21-12a. The properties check receipt +conservation, spouse isolation and contribution independence. Fresh two- or four-person simulations reuse the package's reference model; they do not share simulation caches, mutate parameters, or load datasets. @@ -33,7 +27,6 @@ EXCLUDED_SOURCES = ( "military_service_income", "salt_refund_income", - "investment_in_529_plan_indv", ) AGIS = st.integers(min_value=-20_000, max_value=60_000) @@ -44,7 +37,7 @@ COUPLE = st.tuples(PERSON, PERSON) PROPERTY_SETTINGS = settings(max_examples=50, deadline=None, derandomize=True) ZERO_MODIFICATIONS = (0, 0, 0, 0) -ZERO_EXCLUSIONS = (0, 0, 0) +ZERO_EXCLUSIONS = (0, 0) LOW_INCOME_COUPLE = ( (6_000, ZERO_MODIFICATIONS, ZERO_EXCLUSIONS), (6_000, ZERO_MODIFICATIONS, ZERO_EXCLUSIONS), @@ -118,19 +111,13 @@ def test_without_excluded_amounts_matches_previous_formula(agis, modifications): @given(couple=COUPLE) @example( couple=( - (6_000, ZERO_MODIFICATIONS, (0, 2_000, 0)), + (6_000, ZERO_MODIFICATIONS, (0, 2_000)), (6_000, ZERO_MODIFICATIONS, ZERO_EXCLUSIONS), ) ) @example( couple=( - (6_000, ZERO_MODIFICATIONS, (2_000, 0, 0)), - (6_000, ZERO_MODIFICATIONS, ZERO_EXCLUSIONS), - ) -) -@example( - couple=( - (6_000, ZERO_MODIFICATIONS, (0, 0, 2_000)), + (6_000, ZERO_MODIFICATIONS, (2_000, 0)), (6_000, ZERO_MODIFICATIONS, ZERO_EXCLUSIONS), ) ) @@ -138,8 +125,9 @@ def test_senior_and_other_subtractions_do_not_exceed_income_or_other_subtraction couple, ): deduction = _simulation(couple).calculate(DEDUCTION, YEAR) - # Sum each person's independently supplied lines 29-46 amounts, without - # using the deduction formula or its intermediate calculated totals. + # Sum each person's independently supplied modified income receipts, + # without using the deduction formula or its intermediate totals. + # A 529 contribution adds no income, so it stays out of this bound. subtractions = np.array( [ sum(modifications) + sum(exclusions) @@ -161,8 +149,6 @@ def test_senior_and_other_subtractions_do_not_exceed_income_or_other_subtraction @example(couple=LOW_INCOME_COUPLE, changed_person=1, source_index=0, increase=2_000) @example(couple=LOW_INCOME_COUPLE, changed_person=0, source_index=1, increase=2_000) @example(couple=LOW_INCOME_COUPLE, changed_person=1, source_index=1, increase=2_000) -@example(couple=LOW_INCOME_COUPLE, changed_person=0, source_index=2, increase=2_000) -@example(couple=LOW_INCOME_COUPLE, changed_person=1, source_index=2, increase=2_000) def test_changing_one_spouses_excluded_amount_preserves_the_others_modification( couple, changed_person, source_index, increase ): @@ -176,3 +162,22 @@ def test_changing_one_spouses_excluded_amount_preserves_the_others_modification( other_person = 1 - changed_person assert deduction[other_person] == deduction[2 + other_person] assert deduction[2 + changed_person] <= deduction[changed_person] + + +@PROPERTY_SETTINGS +@given( + couple=COUPLE, + contributor=st.integers(min_value=0, max_value=1), + contribution=st.integers(min_value=1, max_value=20_000), +) +@example(couple=LOW_INCOME_COUPLE, contributor=0, contribution=2_000) +@example(couple=LOW_INCOME_COUPLE, contributor=1, contribution=2_000) +def test_contributions_preserve_both_spouses_senior_modifications( + couple, contributor, contribution +): + simulation = _simulation(couple, couple) + contributions = np.zeros(4) + contributions[2 + contributor] = contribution + simulation.set_input("investment_in_529_plan_indv", YEAR, contributions) + deduction = simulation.calculate(DEDUCTION, YEAR) + np.testing.assert_array_equal(deduction[:2], deduction[2:]) diff --git a/policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/subtractions/senior_citizen_disability/wv_senior_citizen_disability_deduction_person.yaml b/policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/subtractions/senior_citizen_disability/wv_senior_citizen_disability_deduction_person.yaml index 0db631f2408..6dac723160f 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/subtractions/senior_citizen_disability/wv_senior_citizen_disability_deduction_person.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/subtractions/senior_citizen_disability/wv_senior_citizen_disability_deduction_person.yaml @@ -142,7 +142,7 @@ wv_senior_citizen_disability_deduction: 10_000 wv_subtractions: 12_000 -- name: A line 39 contribution reduces only the contributor's remaining income. +- name: A 529 contribution preserves both spouses' senior modifications. period: 2025 input: people: @@ -164,11 +164,11 @@ members: [head, spouse] state_code: WV output: - # The contribution deducts 2,000 on a line within the excluded range. - # Head: min(6,000 - 2,000, 8,000); spouse: min(6,000, 8,000). + # Filers deduct the contribution in addition to both + # senior modifications: 6,000 + 6,000 + 2,000 = 14,000. wv_529_plan_deduction: 2_000 - wv_senior_citizen_disability_deduction_person: [4_000, 6_000] - wv_subtractions: 12_000 + wv_senior_citizen_disability_deduction_person: [6_000, 6_000] + wv_subtractions: 14_000 - name: Income still above the cap after exclusions leaves the modification unchanged. period: 2025 @@ -181,7 +181,7 @@ wv_senior_citizen_disability_deduction_total_modifications: 3_000 state_code: WV output: - # min(20,000 - 4,000, 8,000) - 3,000 = 5,000, as before. + # min(20,000 - 3,000, 8,000) - 3,000 = 5,000. wv_senior_citizen_disability_deduction_person: 5_000 - name: Box d is subtracted after excluding refunds and applying the cap. @@ -231,7 +231,7 @@ output: wv_senior_citizen_disability_deduction_person: 0 -- name: A qualifying disabled person also excludes a line 39 contribution. +- name: A qualifying disabled person retains the additional 529 deduction. period: 2025 input: age: 50 @@ -240,10 +240,10 @@ investment_in_529_plan_indv: 1_000 state_code: WV output: - # min(6,000 - 1,000, 8,000) - 0 = 5,000. - wv_senior_citizen_disability_deduction_person: 5_000 + # min(6,000, 8,000) - 0 = 6,000, plus the separate contribution. + wv_senior_citizen_disability_deduction_person: 6_000 wv_529_plan_deduction: 1_000 - wv_subtractions: 6_000 + wv_subtractions: 7_000 - name: Each spouse's $8,000 limit uses their own AGI, after their own IRA deduction. period: 2024 @@ -268,3 +268,100 @@ # W. Va. Code 11-21-12(c): up to $8,000 of each eligible individual's # federal AGI. Before: [5_000, 8_000]. wv_senior_citizen_disability_deduction_person: [4_000, 8_000] + +# W. Va. Code sections 11-21-12(c)(9) and 11-21-12a: filers deduct contribution +# payments separately from their senior modifications. +- name: A senior's contribution does not reduce the senior modification. + period: 2025 + input: + state_code: WV + age: 66 + is_tax_unit_head: true + adjusted_gross_income_person: 6_000 + investment_in_529_plan_indv: 2_000 + wv_senior_citizen_disability_deduction_total_modifications: 0 + output: + wv_senior_citizen_disability_deduction_person: 6_000 + wv_529_plan_deduction: 2_000 + +- name: From 2014, the 529 contribution leaves the senior income cap unchanged. + period: 2014 + input: + wv_senior_citizen_disability_deduction_eligible_person: true + adjusted_gross_income_person: 6_000 + investment_in_529_plan_indv: 2_000 + wv_senior_citizen_disability_deduction_total_modifications: 0 + output: + wv_senior_citizen_disability_deduction_person: 6_000 + +- name: Refund exclusions and modifications still apply independently of contributions. + period: 2025 + input: + state_code: WV + age: 66 + adjusted_gross_income_person: 6_000 + investment_in_529_plan_indv: 2_000 + salt_refund_income: 1_000 + wv_senior_citizen_disability_deduction_total_modifications: 500 + output: + # Preserve Schedule M base: min(6,000 - 1,000, 8,000) - 500. + wv_senior_citizen_disability_deduction_person: 4_500 + +- name: A senior's additional 529 deduction remains available on a joint return. + period: 2025 + input: + people: + head: + age: 66 + adjusted_gross_income_person: 6_000 + investment_in_529_plan_indv: 2_000 + wv_senior_citizen_disability_deduction_total_modifications: 0 + spouse: + age: 60 + adjusted_gross_income_person: 40_000 + tax_units: + unit: + members: [head, spouse] + filing_status: JOINT + adjusted_gross_income: 46_000 + wv_additions: 0 + wv_low_income_earned_income_exclusion: 0 + households: + household: + members: [head, spouse] + state_code: WV + output: + wv_senior_citizen_disability_deduction_person: [6_000, 0] + wv_529_plan_deduction: 2_000 + wv_subtractions: 8_000 + wv_agi: 38_000 + wv_taxable_income: 34_000 + +- name: A 529 contribution leaves a senior modification at the cap unchanged. + period: 2025 + input: + age: 66 + adjusted_gross_income_person: 9_000 + investment_in_529_plan_indv: 2_000 + state_code: WV + output: + # min(9,000, 8,000) = 8,000. Excluding the contribution from the base would + # give min(9,000 - 2,000, 8,000) = 7,000. + wv_senior_citizen_disability_deduction_person: 8_000 + +- name: A senior deducts a contribution in full and pays no tax on negative state AGI. + period: 2025 + input: + state_code: WV + age: 66 + employment_income: 6_000 + investment_in_529_plan_indv: 2_000 + output: + # 6,000 - (6,000 + 2,000) = -2,000; taxable income floors at zero. + adjusted_gross_income: 6_000 + wv_senior_citizen_disability_deduction_person: 6_000 + wv_529_plan_deduction: 2_000 + wv_subtractions: 8_000 + wv_agi: -2_000 + wv_taxable_income: 0 + wv_income_tax_before_refundable_credits: 0 diff --git a/policyengine_us/variables/gov/states/wv/tax/income/subtractions/senior_citizen_disability/wv_senior_citizen_disability_deduction_person.py b/policyengine_us/variables/gov/states/wv/tax/income/subtractions/senior_citizen_disability/wv_senior_citizen_disability_deduction_person.py index 56a38a5afcb..6fc8d1e6c22 100644 --- a/policyengine_us/variables/gov/states/wv/tax/income/subtractions/senior_citizen_disability/wv_senior_citizen_disability_deduction_person.py +++ b/policyengine_us/variables/gov/states/wv/tax/income/subtractions/senior_citizen_disability/wv_senior_citizen_disability_deduction_person.py @@ -9,6 +9,7 @@ class wv_senior_citizen_disability_deduction_person(Variable): definition_period = YEAR reference = ( "https://code.wvlegislature.gov/11-21-12/", + "https://code.wvlegislature.gov/11-21-12a/", "https://tax.wv.gov/Documents/PIT/2025/it140.PersonalIncomeTaxFormsAndInstructions.2025.pdf#page=6", "https://tax.wv.gov/Documents/PIT/2024/it140.PersonalIncomeTaxFormsAndInstructions.2024.pdf#page=6", "https://tax.wv.gov/Documents/TaxForms/2018/it140.booklet.pdf#page=5", @@ -22,8 +23,8 @@ def formula(person, period, parameters): agi_person = person("adjusted_gross_income_person", period) # Source conflict us-wv:senior-disability-modification-income-base - # Box (c) excludes the person's own amounts on lines 35-46 before - # applying the cap, including income already deducted on line 39. + # Exclude the person's modified income receipts before the cap. + # Filers deduct 529 contributions separately under section 12a. excluded_amounts = add(person, period, p.excluded_income_sources) capped_income = min_(p.cap, agi_person - excluded_amounts) # Box (d) then subtracts the person's own lines 29-34 modifications. diff --git a/source_conflicts/candidates.yaml b/source_conflicts/candidates.yaml index 601e0405024..c27fe8db7a9 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -13935,6 +13935,53 @@ candidates: note: 'PE-US keeps WV out of requires_income_below_limit, so income equal to the SSI rate qualifies. This assumes the group is the 42 CFR 435.210 group of section 1902(a)(10)(A)(ii)(I); West Virginia''s state plan page for the group was not checked. The archived 2013 manual pairs the same two wordings (§ 16.7.H and § 10.23.C).' +- id: us-wv:senior-modification-529-contribution + program: income-tax + years: + from: 2014 + type: tax + question: Must filers reduce the senior or disability modification income base under W. Va. Code 11-21-12(c)(9) + when they deduct contributions under section 11-21-12a? + sources: + - kind: statute + citation: W. Va. Code 11-21-12a + url: https://code.wvlegislature.gov/11-21-12a/ + - kind: statute + citation: W. Va. Code 11-21-12(c)(9) + url: https://code.wvlegislature.gov/11-21-12/ + - kind: form + citation: 2025 Schedule M, line 39 and line 47 box (c), PDF pp. 5-6 + url: https://tax.wv.gov/Documents/PIT/2025/it140.PersonalIncomeTaxFormsAndInstructions.2025.pdf#page=5 + - kind: statute + citation: West Virginia 2000 HB4679, section 11-21-12a, PDF p. 3 + url: https://code.wvlegislature.gov/signed_bills/2000/2000-RS-HB4679-SUB%20ENR_signed.pdf#page=3 + - kind: statute + citation: West Virginia 2013 SB65, section 11-21-12(c)(8), PDF pp. 6-7 + url: https://code.wvlegislature.gov/signed_bills/2013/2013-RS-SB65-ENR_signed.pdf#page=6 + - kind: form + citation: 2014 Schedule M, line 47 and line 52 box (a), PDF p. 9 + url: https://tax.wv.gov/Documents/TaxForms/2014/it140.booklet.pdf#page=9 + readings: + statute: Filers deduct contributions in addition to subsection (c) modifications under section 12a. They reduce + the senior cap only by the modifications under (c)(1), (2) and (5)-(8), as (c)(9)(ii) requires. + other: Filers enter income outside Schedule M lines 35 to 46 in box (c). They claim contributions on line 39, + excluding those payments from box (c) income. + pe_us: + follows: statute + code: + - policyengine_us/variables/gov/states/wv/tax/income/subtractions/senior_citizen_disability/wv_senior_citizen_disability_deduction_person.py + - policyengine_us/parameters/gov/states/wv/tax/income/subtractions/senior_citizen_disability_deduction/excluded_income_sources.yaml + prs: + - https://github.com/PolicyEngine/policyengine-us/pull/10673 + state: ruled + note: 'PolicyEngine follows section 12a for contributions and preserves the receipt exclusions under the registered + us-wv:senior-disability-modification-income-base reading. Filers may expressly deduct contributions separately + under section 12a, meeting the canon''s requirement for clear authorization of an additional deduction. + PolicyEngine deducts current-year contributions in full without tracking an election to carry them forward + over up to five taxable years, beginning with the payment year. + PolicyEngine retains 2014 as the verified coverage boundary; the Legislature already authorized the additional + deduction in 2000 HB4679 and retained the senior modification under subdivision (c)(8) in 2013 SB65. The existing marker, register and pin + remain until a follow-up registers this contribution-specific ruling after merge.' - id: us-wv:senior-modification-excluded-line-range program: income-tax years: @@ -13961,7 +14008,8 @@ candidates: - https://github.com/PolicyEngine/policyengine-us/pull/10082 state: unreviewed note: 'PE-US follows the form and worked example: box (c) excludes the person''s own amounts on 2025 Schedule - M lines 35-46, and the list holds lines 36, 38 and 39 (wv_senior_citizen_disability_deduction_person.py, excluded_income_sources.yaml). + M lines 35-46, and from 2014 the list holds lines 36 and 38 and leaves out the line 39 529 contribution (see + us-wv:senior-modification-529-contribution) (wv_senior_citizen_disability_deduction_person.py, excluded_income_sources.yaml). Verify the stale range and resulting amount difference.' - id: us-wv:zero-exemption-return-500-allowance program: income-tax