Add Montana unemployment compensation subtraction for pre-2024 years - #9212
Merged
hua7450 merged 2 commits intoAug 7, 2026
Merged
Conversation
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 Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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>
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
approved these changes
Aug 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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).subtractions.yamllists (2010 and 2021 brackets). The 2024+ lists are unchanged — UI is taxable in Montana from 2024.mt_taxable_social_security; it already subtractsmt_subtractions, so the exemption propagates into the worksheet automatically.Validation against the TaxAct return (taxsim #1120)
* 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/mtbaseline suite.🤖 Generated with Claude Code