From c5c89c4519f52e554e255dd8ea0ce254379860c1 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Thu, 5 Nov 2026 21:40:06 -0500 Subject: [PATCH 1/5] Count West Virginia 529 contributions in addition to the senior modification W. Va. Code 11-21-12a subtracts 529 and prepaid tuition contribution payments "in addition to" the subsection (c) modifications of section 11-21-12. The senior citizen or disability modification now excludes only income receipts (Schedule M lines 36 and 38) before its $8,000 cap, so a contribution no longer shrinks it. Schedule M box (c) counts income not included in lines 35 to 46, a range that takes in the line 39 contribution; candidate us-wv:senior-modification-529-contribution records the conflict. Co-Authored-By: Claude Opus 5.5 --- .../wv-529-senior-modification.fixed.md | 1 + .../excluded_income_sources.yaml | 12 ++- ..._wv_senior_citizen_disability_deduction.py | 37 +++---- ...r_citizen_disability_deduction_person.yaml | 100 ++++++++++++++++-- ...ior_citizen_disability_deduction_person.py | 4 +- source_conflicts/candidates.yaml | 35 +++++- 6 files changed, 151 insertions(+), 38 deletions(-) create mode 100644 changelog.d/wv-529-senior-modification.fixed.md 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..e500ea2abbf 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 + # Section 11-21-12a deducts 529 contribution payments separately; + # this list holds income receipts only. 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..ead61899f91 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,17 @@ """Hypothesis coverage of Schedule M's person-level subtraction limits. 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 +remaining after the modified income receipts on 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. +Only income receipts enter the excluded Schedule M amounts. Section +11-21-12a independently authorizes the line 39 contribution deduction in +addition to the section 11-21-12(c) modifications. Contributions are outside the income-conservation property below; their +independence from the senior modification is covered by the variable YAML +tests. 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 +34,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 +44,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 +118,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 +132,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 +156,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 ): 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..f8934d7643e 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). + # Section 11-21-12a allows 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,83 @@ # 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, and box (c) excludes only income receipts. +- 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 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..38c5f1ac84e 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", @@ -23,7 +24,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. + # applying the cap. The separate section 12a deduction for 529 + # contribution payments does not exclude income. 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 6025a2b3e21..4d23e6d38a7 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -11644,6 +11644,38 @@ 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: Does a 529 or prepaid tuition contribution deducted under W. Va. Code 11-21-12a reduce the income base of + the senior or disability modification under 11-21-12(c)(9)? + 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 p. 6 + url: https://tax.wv.gov/Documents/PIT/2025/it140.PersonalIncomeTaxFormsAndInstructions.2025.pdf#page=6 + readings: + statute: Section 12a's deduction adds to the subsection (c) modifications, and (c)(9)(ii) limits the senior + modification only by the modifications under (c)(1), (2) and (5)-(8), so a contribution doesn't reduce it. + other: Schedule M box (c) counts income not included in lines 35 to 46, and line 39 holds the 529 contribution, so + the form excludes it. + 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 + state: open + note: 'This PR follows the statute for line 39 and keeps the section 12a contribution deduction apart from the + income receipts on lines 36 and 38 that the senior cap excludes. Main follows the registered + us-wv:senior-disability-modification-income-base reading, which excludes all of Schedule M lines 35 to 46, line 39 + included. This PR keeps the existing marker, vendored register and pin.' - id: us-wv:senior-modification-excluded-line-range program: income-tax years: @@ -11670,7 +11702,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 From 7d61c7bd2290e63a35cfefde9a286345a19814fe Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Thu, 5 Nov 2026 21:40:53 -0500 Subject: [PATCH 2/5] List PolicyEngine/policyengine-us#10673 in the West Virginia 529 candidate Co-Authored-By: Claude Opus 5.5 --- source_conflicts/candidates.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source_conflicts/candidates.yaml b/source_conflicts/candidates.yaml index 4d23e6d38a7..ff8e3ad845b 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -11671,6 +11671,8 @@ candidates: 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: open note: 'This PR follows the statute for line 39 and keeps the section 12a contribution deduction apart from the income receipts on lines 36 and 38 that the senior cap excludes. Main follows the registered From 583cb246415d12f61ca80af0b4e521deaaa58fc0 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sat, 14 Nov 2026 21:42:50 -0500 Subject: [PATCH 3/5] Verify West Virginia contribution independence and record the statute reading Co-Authored-By: Claude Opus 5.5 --- ..._wv_senior_citizen_disability_deduction.py | 38 ++++++++++++------- ...r_citizen_disability_deduction_person.yaml | 19 +++++++++- ...ior_citizen_disability_deduction_person.py | 5 +-- source_conflicts/candidates.yaml | 22 ++++++++--- 4 files changed, 62 insertions(+), 22 deletions(-) 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 ead61899f91..f3c8e343dd1 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,17 +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 the modified income receipts on 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. - -Only income receipts enter the excluded Schedule M amounts. Section -11-21-12a independently authorizes the line 39 contribution deduction in -addition to the section 11-21-12(c) modifications. Contributions are outside the income-conservation property below; their -independence from the senior modification is covered by the variable YAML -tests. +Eligible residents cap income after excluding modified income receipts at +$8,000, then subtract their own Schedule M lines 29-34 modifications. +Section 11-21-12a lets them deduct college-savings contributions in addition +to the section 11-21-12(c) modifications. 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. @@ -169,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 f8934d7643e..884a292543e 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 @@ -270,7 +270,7 @@ 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, and box (c) excludes only income receipts. +# payments separately from their senior modifications. - name: A senior's contribution does not reduce the senior modification. period: 2025 input: @@ -348,3 +348,20 @@ # 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 38c5f1ac84e..10ace2a1afa 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 @@ -23,9 +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. The separate section 12a deduction for 529 - # contribution payments does not exclude income. + # Exclude the person's modified income receipts before the cap. + # Section 12a lets filers deduct 529 contributions separately. 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 93cfa3f7575..3f6e458e2a1 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -13952,6 +13952,15 @@ candidates: - kind: form citation: 2025 Schedule M, line 39 and line 47 box (c), PDF p. 6 url: https://tax.wv.gov/Documents/PIT/2025/it140.PersonalIncomeTaxFormsAndInstructions.2025.pdf#page=6 + - 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: Section 12a's deduction adds to the subsection (c) modifications, and (c)(9)(ii) limits the senior modification only by the modifications under (c)(1), (2) and (5)-(8), so a contribution doesn't reduce it. @@ -13964,11 +13973,14 @@ candidates: - 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: open - note: 'This PR follows the statute for line 39 and keeps the section 12a contribution deduction apart from the - income receipts on lines 36 and 38 that the senior cap excludes. Main follows the registered - us-wv:senior-disability-modification-income-base reading, which excludes all of Schedule M lines 35 to 46, line 39 - included. This PR keeps the existing marker, vendored register and pin.' + 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. Section 12a expressly permits the additional deduction, + so the canon against double deductions does not offset the contribution against the senior modification. + The annual model deducts current-year contributions in full without tracking the optional five-tax-year election. + The 2014 boundary preserves verified model coverage; HB4679 already included the additional deduction in 2000, + and SB65 retained the senior modification under subdivision (c)(8) in 2013. 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: From 04e2f18738a7d3fbb9eeb09a2fdcc88e5e0c221a Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sat, 14 Nov 2026 21:44:41 -0500 Subject: [PATCH 4/5] Clarify West Virginia contribution deduction comments Co-Authored-By: Claude Opus 5.5 --- .../excluded_income_sources.yaml | 4 ++-- .../tests/core/test_wv_senior_citizen_disability_deduction.py | 4 ++-- .../wv_senior_citizen_disability_deduction_person.yaml | 2 +- .../wv_senior_citizen_disability_deduction_person.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) 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 e500ea2abbf..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,8 +8,8 @@ values: # Line numbers below are from the 2025 form. - military_service_income # Line 36 - salt_refund_income # Line 38 - # Section 11-21-12a deducts 529 contribution payments separately; - # this list holds income receipts only. + # Filers deduct 529 contribution payments separately under section + # 11-21-12a; only income receipts enter this list. metadata: unit: list 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 f3c8e343dd1..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 @@ -2,8 +2,8 @@ Eligible residents cap income after excluding modified income receipts at $8,000, then subtract their own Schedule M lines 29-34 modifications. -Section 11-21-12a lets them deduct college-savings contributions in addition -to the section 11-21-12(c) modifications. The properties check receipt +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; 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 884a292543e..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 @@ -164,7 +164,7 @@ members: [head, spouse] state_code: WV output: - # Section 11-21-12a allows the contribution in addition to both + # 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: [6_000, 6_000] 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 10ace2a1afa..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 @@ -24,7 +24,7 @@ def formula(person, period, parameters): agi_person = person("adjusted_gross_income_person", period) # Source conflict us-wv:senior-disability-modification-income-base # Exclude the person's modified income receipts before the cap. - # Section 12a lets filers deduct 529 contributions separately. + # 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. From 9eeaf69d1539f04d1248e15086ab0fc13446f3aa Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sat, 14 Nov 2026 22:42:39 -0500 Subject: [PATCH 5/5] Correct West Virginia form citations and clarify the source choice Co-Authored-By: Claude Opus 5.5 --- source_conflicts/candidates.yaml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/source_conflicts/candidates.yaml b/source_conflicts/candidates.yaml index 3f6e458e2a1..c27fe8db7a9 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -13940,8 +13940,8 @@ candidates: years: from: 2014 type: tax - question: Does a 529 or prepaid tuition contribution deducted under W. Va. Code 11-21-12a reduce the income base of - the senior or disability modification under 11-21-12(c)(9)? + 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 @@ -13950,8 +13950,8 @@ candidates: 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 p. 6 - url: https://tax.wv.gov/Documents/PIT/2025/it140.PersonalIncomeTaxFormsAndInstructions.2025.pdf#page=6 + 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 @@ -13962,10 +13962,10 @@ candidates: 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: Section 12a's deduction adds to the subsection (c) modifications, and (c)(9)(ii) limits the senior - modification only by the modifications under (c)(1), (2) and (5)-(8), so a contribution doesn't reduce it. - other: Schedule M box (c) counts income not included in lines 35 to 46, and line 39 holds the 529 contribution, so - the form excludes it. + 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: @@ -13975,11 +13975,12 @@ candidates: - 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. Section 12a expressly permits the additional deduction, - so the canon against double deductions does not offset the contribution against the senior modification. - The annual model deducts current-year contributions in full without tracking the optional five-tax-year election. - The 2014 boundary preserves verified model coverage; HB4679 already included the additional deduction in 2000, - and SB65 retained the senior modification under subdivision (c)(8) in 2013. The existing marker, register and pin + 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