Skip to content

Add Montana unemployment compensation subtraction for pre-2024 years - #9212

Merged
hua7450 merged 2 commits into
PolicyEngine:mainfrom
DTrim99:fix/mt-unemployment-subtraction
Aug 7, 2026
Merged

Add Montana unemployment compensation subtraction for pre-2024 years#9212
hua7450 merged 2 commits into
PolicyEngine:mainfrom
DTrim99:fix/mt-unemployment-subtraction

Conversation

@DTrim99

@DTrim99 DTrim99 commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Fixes #9211.

Montana exempted unemployment compensation from state income tax until SB 399 (Ch. 503, L. 2021) repealed the exemption effective tax year 2024, but the model had no unemployment subtraction in any year — UI flowed into Montana AGI and, as a knock-on, inflated Montana-taxable Social Security (the Taxable Social Security Benefits worksheet subtracts the Subtractions Schedule subtotal from provisional income).

Found via PolicyEngine/policyengine-taxsim#1120 (2021 MT single filer, age 74, with $23,120 of unemployment compensation; filed by @feenberg with a TaxAct return).

Changes

  • New mt_unemployment_compensation_subtraction (Person): adds = ["taxable_unemployment_compensation"], matching the Subtractions Schedule line 7 instruction to enter "the same amount" of unemployment benefits reported on federal Schedule 1, line 7 (2021 Form 2 instructions, p. 25).
  • Added it to the pre-2024 subtractions.yaml lists (2010 and 2021 brackets). The 2024+ lists are unchanged — UI is taxable in Montana from 2024.
  • No change needed in mt_taxable_social_security; it already subtracts mt_subtractions, so the exemption propagates into the worksheet automatically.

Validation against the TaxAct return (taxsim #1120)

Quantity TaxAct PE before PE after
Federal AGI 73,013 73,013.31 73,013.31
Subtractions line 3 (interest exemption 65+) 800 800 800
Subtractions line 7 (unemployment) 23,120 0 23,120
Subtractions line 37 (SS adjustment) 20,332 680 20,332
Montana AGI 28,761 71,533.32 28,761.32
Montana taxable income n/a* 61,373.32 18,601.32

* Only the Subtractions Schedule page of the TaxAct return was uploaded; the remaining difference between PE's itemized federal-tax deduction ($5,000) and the capped standard deduction ($4,830) is a separate, known convention question (taxsim #1112).

Emulator end-to-end on the exact TAXSIM input row reproduces the table above (tax before the HB 192 rebate: 686.08; the 2023 one-time rebate then nets 2021 liability to 0 under the taxsim #1068 booking convention).

All tests in the new file pass, plus the full gov/states/mt baseline suite.

🤖 Generated with Claude Code

Montana exempted unemployment compensation (former 15-30-2110, MCA;
Form 2 Subtractions Schedule line 7) until SB 399 repealed the
exemption effective tax year 2024. The model had no UI subtraction in
any year, so unemployment income entered Montana AGI and inflated
Montana-taxable Social Security through the worksheet's provisional
income. Found via PolicyEngine/policyengine-taxsim#1120.

Fixes PolicyEngine#9211.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (0eec199) to head (5d99697).
⚠️ Report is 22 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #9212   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         1    -1     
  Lines           31        10   -21     
=========================================
- Hits            31        10   -21     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@DTrim99
DTrim99 marked this pull request as ready for review August 3, 2026 15:32
@DTrim99
DTrim99 requested a review from PavelMakarchuk August 3, 2026 15:32
UI-only income drops Montana AGI to the remaining interest, the
standard deduction floors at the single minimum, and taxable income
zeroes out.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@DTrim99

DTrim99 commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator Author

Added a second validation record from PolicyEngine/policyengine-taxsim#1121 (2021 MT single, $50,823 unemployment-only income): with the subtraction in place, Montana AGI drops to the remaining $309.73 of interest, the standard deduction floors at the single minimum, and taxable income zeroes out — matching the TaxAct return's subtraction schedule (line 7 = 50,823).

@hua7450
hua7450 merged commit bebac4b into PolicyEngine:main Aug 7, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MT unemployment compensation exemption (pre-2024) missing, also inflating MT taxable Social Security

2 participants