Skip to content

Flow OBBBA Schedule 1-A deductions into MT taxable income#8565

Merged
hua7450 merged 4 commits into
mainfrom
add-obbba-schedule-1a-deductions-to-mt-subtractions
Jun 2, 2026
Merged

Flow OBBBA Schedule 1-A deductions into MT taxable income#8565
hua7450 merged 4 commits into
mainfrom
add-obbba-schedule-1a-deductions-to-mt-subtractions

Conversation

@PavelMakarchuk
Copy link
Copy Markdown
Collaborator

Summary

Closes #8562.

Per Mont. Code Ann. § 15-30-2120, Montana taxable income starts from federal taxable income (Form 1040 Line 15), not federal AGI. Federal taxable income already nets the federal $6K Schedule 1-A senior deduction (OBBBA § 70103, IRC § 151(d)(5)(B)) — plus the qualified tip / overtime / passenger-vehicle loan-interest deductions added by OBBBA.

PE-US's mt_agi_joint and mt_agi_indiv currently start from adjusted_gross_income_person and add back the federal standard deduction via mt_standard_deduction. That captures the federal std ded + age-65 addition but misses Schedule 1-A, leaving MT taxable income $6K too high for the originating scenario in PolicyEngine/policyengine-taxsim#948 (HoH age 75, 1 dep: PE-US returned mt_taxable_income $37,666 vs TC-Form-2 $31,665).

Fix per the issue's Approach 2: keep MT starting from AGI but add a new Person-level mt_federal_obbba_subtraction that projects the four TaxUnit-level federal OBBBA deductions onto the head, and wire it into the subtractions list at 2025-01-01.

Test plan

  • New integration test from the issue (HoH age 75, $25K wages, $17.5K interest, $12K pension, $16.7K SS, 1 dep, $3.5K childcare): mt_federal_obbba_subtraction: 6000, mt_taxable_income_joint: 31_666, mt_income_tax: 1_488. Numerically matches TaxAct Form 2 within $1.
  • Pre-2025 boundary test (period 2024 → subtraction list doesn't include the new variable).
  • Non-senior MT household → $0 subtraction (no Schedule 1-A activity).
  • Full MT regression (401 tests) passes.
  • `make format` clean.
  • CI green.

🤖 Generated with Claude Code

Mont. Code Ann. § 15-30-2120 starts from federal taxable income, so
the federal OBBBA Schedule 1-A deductions (the $6K enhanced senior
deduction, qualified tip and overtime income exclusions, and
passenger-vehicle loan interest) should flow into MT taxable income.

PE-US's mt_agi_joint and mt_agi_indiv currently start from federal
AGI and replicate the federal standard deduction in mt_standard_deduction,
which understates MT subtractions by the Schedule 1-A amount.

Add a new mt_federal_obbba_subtraction Person-level variable that
projects the federal TaxUnit-level Schedule 1-A deductions onto the
tax-unit head, and wire it into the subtractions list at 2025-01-01
(OBBBA effective date).

Closes #8562.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (fa285ae) to head (7078494).
⚠️ Report is 32 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #8565   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         1    -4     
  Lines           62        16   -46     
=========================================
- Hits            62        16   -46     
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 Sentry.
📢 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.

Adds reviewer-driven tests:
- MFJ both spouses 65+: confirms head gets $12K, spouse 0.
- Senior phaseout at MAGI = $75K (single threshold) and at $300K
  (fully phased out).
- Tipped worker (non-senior) exercises the tip_income_deduction
  branch of the Schedule 1-A sum.

Expands the variable reference tuple with the 2025 MT Form 2
Instructions p.7 (the most authoritative source for the design)
and OBBBA SEC. 70201 (qualified tips).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@PavelMakarchuk PavelMakarchuk marked this pull request as ready for review June 2, 2026 14:14
@PavelMakarchuk PavelMakarchuk requested a review from hua7450 June 2, 2026 14:14
@hua7450 hua7450 merged commit 5a3d047 into main Jun 2, 2026
26 checks passed
@hua7450 hua7450 deleted the add-obbba-schedule-1a-deductions-to-mt-subtractions branch June 2, 2026 19:46
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 taxable income missing federal Schedule 1-A senior deduction ($6,000 OBBBA) — § 15-30-2120 starts from federal taxable income

2 participants