Skip to content

Count four missing kinds of nontaxable income in Montana's elderly homeowner/renter credit - #11180

Merged
DTrim99 merged 3 commits into
mainfrom
mt-elderly-credit-income
Nov 23, 2026
Merged

DTrim99 merged 3 commits into
mainfrom
mt-elderly-credit-income

Conversation

@DTrim99

@DTrim99 DTrim99 commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #10812 (state credit income audit).

What was wrong

Montana's elderly homeowner/renter credit tests gross household income: under MCA 15-30-2337(9)(a), "federal adjusted gross income, without regard to loss, ... plus all nontaxable income, including but not limited to: (i) the amount of any pension or annuity ... (iii) alimony ... (vii) interest on federal, state, county, and municipal bonds" (MCA 15-30-2337; the 2009 text is the same). gov.states.mt.tax.income.credits.elderly_homeowner_or_renter.gross_income_sources left out four kinds of nontaxable income:

  • alimony outside federal AGI (instruments executed after 2018), since only taxable_alimony_income reaches AGI;
  • savings bond interest excluded under IRC 135, which the model takes out of AGI as an above-the-line deduction (us_bonds_for_higher_ed) and never added back;
  • foreign earned income and housing amounts excluded under IRC 911;
  • tax-exempt 401(k), 403(b) and SEP distributions: the list had tax_exempt_ira_distributions but not the employer-plan Roth amounts.

What changes

Item Source
New mt_elderly_homeowner_or_renter_credit_alimony_addback on the list: alimony received less the taxable alimony federal AGI (or a dependent's own gross income) already counts (9)(a)(iii) "alimony"; 2025 Schedule 2EC instructions, line 9, page 46: "Enter the total of all alimony received during the year" (2024 instructions, page 47, the same)
us_bonds_for_higher_ed on the list (9)(a)(vii) "interest on federal ... bonds"; 2025 instructions, line 2, page 45: "Enter all interest, both taxable and nontaxable"
Formula: the IRC 911 exclusion, Form 2555 line 45 (section_911_excluded_income less foreign_housing_deduction, at least zero), added once to the tax unit head, as the formula already does for loss_ald (9)(a) "plus all nontaxable income, including but not limited to"; 2025 instructions, line 1, page 45 takes wages from Form 1040 line 1z, which is before the exclusion (Form 2555 instructions, line 45, page 7: the exclusion goes on Schedule 1 line 8d)
tax_exempt_ira_distributions replaced by tax_exempt_retirement_distributions (Roth IRA, 401(k), 403(b) and SEP) (9)(a)(i) "the amount of any pension or annuity"; ARM 42.4.301(2)(d) "all federal taxable and nontaxable pension, annuity, and IRA payments received during the year"; 2025 instructions lines 4 and 5, page 45

All three year blocks (2009, 2017, 2023) change the same way; the statute's wording is the same in 2009.

Basis (a limitation, not a ruling). (9)(b) says "income is reduced by the taxpayer's basis", and Schedule 2EC line 5 leaves out "your cost or net investment" and nontaxable rollovers. The tax-exempt distribution inputs are whole distributions, basis included, so the basis can't be separated. This PR therefore counts tax-exempt account distributions in full, IRA and employer-plan Roth alike, as Roth IRAs already were. That is a modeling limitation, tracked in #11198 (the 401(k), 403(b) and SEP inputs, Roth IRAs before 2024 and rollovers) and #10802 (tax_exempt_pension_income). For IRAs from 2024, whether ARM 42.4.301(2)(d) displaces the (9)(b) basis reduction or works with it is an open question for the project lead. It is registered as us-mt:elderly-credit-ira-distribution-basis with state: open.

Foreign housing deduction. The review proposed section_911_excluded_income, which is Form 2555 lines 45 and 50. Line 50 is the IRC 911(c)(4) housing deduction for the self-employed, a deduction in figuring AGI (Schedule 1 line 24j) rather than excluded income, so the formula takes it back out. With the legacy foreign_earned_income_exclusion input alone, foreign_housing_deduction is zero and the full amount counts.

Savings bonds recorded on a dependent. By the model's convention (gov.irs.ald.filer_amounts_recorded_on_dependents), an IRC 135 amount recorded on a dependent comes out of the parent's AGI. The list adds it back on the dependent's record, so the household total is right, though the per-person split shows it on the dependent. Only the household total reaches the credit.

Who is affected

Montana residents aged 62 or older who claim the elderly homeowner/renter credit (a refundable Montana income tax credit), when anyone in the household has post-2018 alimony, IRC 135 savings bond interest, IRC 911 excluded income, or tax-exempt (Roth) 401(k), 403(b) or SEP distributions. Gross household income rises, so the credit falls: through the $12,600 exclusion and reduction table, through the Credit Multiplier Table bands from $35,000, and to zero at $45,000. Montana income tax after credits rises for these filers by the same amount. Nobody's credit goes up. The review rates alimony, savings bond interest and the IRC 911 exclusion as small for this population.

Tests

Moved from #10812 (mt_elderly_homeowner_or_renter_credit_gross_household_income_audit.yaml) into mt_elderly_homeowner_or_renter_credit_gross_household_income.yaml, without the audit framing:

  • Post-2018 alimony: 26,000 (20,000 + 6,000).
  • Tax-exempt 401(k), 403(b) and SEP distributions: 27,000 (20,000 + 4,000 + 2,000 + 1,000). Per the review's "Tests to rewrite" item 2, the comment no longer says the inputs are "entered net of the taxpayer's cost"; it now says PE counts tax-exempt account distributions in full, as it does Roth IRAs, because (9)(b) basis isn't separable with current inputs. ARM 42.4.301(2)(d) is quoted from the rule as in effect from 9/7/2024.
  • IRC 135 savings bond interest: 20,700 (AGI 20,000 + 700).
  • IRC 911 exclusion (legacy input): 30,000 (20,000 + 10,000).

Added, with arithmetic in each comment:

  • Gross household income: alimony under a 2018 instrument (the last year before the federal cutoff) counts once, 26,000; a Roth IRA distribution still counts in full, 23,000; with Form 2555 leaves, line 45 counts and the line 50 housing deduction doesn't, 20,000 + (10,000 - 1,000) = 29,000 (section_911_excluded_income 11,000); on a joint return the exclusion counts once, on the head, [30,000, 0].
  • mt_elderly_homeowner_or_renter_credit.yaml, end to end in 2025: pension 39,000 plus post-2018 alimony 6,000 gives gross household income of exactly 45,000 and no credit; alimony of 5,999 gives 44,999, net household income 32,399 x 0.05 = 1,619.95, and a credit of (2,000 - 1,619.95) x 10% = 38.005.

Existing test changed:

  • mt_elderly_homeowner_or_renter_credit_dependent_deductions.yaml, "Parent-owned exclusions recorded on a dependent are not deducted twice": the dependent's value goes from 10,000 to 10,700; the parent's 18,800 is unchanged. The 700 of IRC 135 interest is nontaxable interest the statute counts, and the list adds it back on the record that holds it: 10,000 + 700 = 10,700. Household 29,500 = 20,000 + 10,000 - 500 adoption assistance. The audit flagged this case as pinning the undercount.

Not in this PR

axiom: needed (rulespec-us has no us-mt module for MCA 15-30-2337; no encoder run was authorized for this PR)

Tested on Modal: run w1-mt-a, 298/298 passed (287 YAML files: the Montana folder, every partner file and the changed files; plus test_source_conflicts.py, the eight test_mt_elderly_credit_*.py files and the two test_strike_benefits_*.py files, which read this variable).

🤖 Generated with Claude Code

@DTrim99 DTrim99 changed the title Count all nontaxable income in Montana's elderly homeowner/renter credit Count four missing kinds of nontaxable income in Montana's elderly homeowner/renter credit Nov 19, 2026
@DTrim99
DTrim99 requested a review from hua7450 November 20, 2026 00:13

@hua7450 hua7450 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, David. The four additions match MCA 15-30-2337(9)(a) and the 2017, 2024 and 2025 Form 2 instructions, and none repeats income federal AGI already counts. The IRC 911 add-back is taken once per tax unit and floors a negative Form 2555 line 45. The 2025 boundary pair checks by hand: 38.005 at 44,999, and 0 at 45,000. One fix before I approve.

Before merge

  1. Employer-plan Roth distributions now count the participant's own contributions. The PR adds tax_exempt_401k_distributions, tax_exempt_403b_distributions and tax_exempt_sep_distributions at their full amount. (9)(b) says "income is reduced by the taxpayer's basis", and 2025 Schedule 2EC line 5 says "do not include any nontaxable rollovers and your cost or net investment" (2025 Form 2 instructions). Take a 10,000 Roth 401(k) distribution that is 7,000 of the person's own contributions: the law counts 3,000, main counted 0, and this PR counts 10,000. No input holds basis, so counting the full amount is a fair limitation, and no formula change is needed. But CONTRIBUTING asks that a departure from the statute be fixed or tracked, and issue 10802 covers only tax_exempt_pension_income. Please widen 10802, or open a new issue, to cover these three inputs. Also add a source_conflicts/candidates.yaml entry for the IRA conflict already on main: (9)(b) deducts basis, while ARM 42.4.301(2)(d) and line 4 count "all federal taxable and nontaxable ... IRA payments". The PR body's "Ruling for this PR" isn't recorded anywhere a later reader will find it.

Optional

  • Dependent path of the alimony add-back. Every alimony case uses a non-dependent filer, so the dependent branch at mt_elderly_homeowner_or_renter_credit_alimony_addback.py line 42 never runs. One case with a dependent receiving pre-2019 alimony (add-back 0) would cover it.

@DTrim99

DTrim99 commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks, Ziming. Fixed in 6fcf305, rebased on main. No formula change.

Fixed (your "Before merge" item)

  1. Employer-plan Roth basis and the IRA conflict are now tracked.

Skipped (optional, not in this round): a case for the dependent path of the alimony add-back.

Verification:

  • The Montana elderly homeowner/renter credit directory (199) and the source-conflict tests (251) pass locally after the rebase.
  • An independent check matched both quotes word for word against the live statute and the 2025 instructions.

@DTrim99
DTrim99 requested a review from hua7450 November 20, 2026 21:29

@hua7450 hua7450 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, David. Issue 11198 covers the three employer-plan inputs, the comment cites 11198 and 10802, and nothing else in the PR's behavior changed. The new us-mt:elderly-credit-ira-distribution-basis entry quotes (9)(b), ARM 42.4.301(2)(d) and Schedule 2EC line 4 accurately. It also passes the structural checks in test_source_conflicts.py, and the 9/7/2024 start of (2)(d) supports beginning it in 2024. One fix before I approve.

Before merge

  1. The entry says state: ruled, but nobody has ruled on it. The PR body's "Basis ruling" decides only that the inputs can't separate basis, so they count in full. It doesn't choose between (9)(b) and the regulation. CONTRIBUTING sends a regulation-versus-statute question to the project lead, and no ruling exists yet. Please set state: open and keep follows: conflicting-source as a description of what the code does.

    Please also give the note both readings of (2)(d):

    • ARM 42.4.301(2) opens "'Gross household income' means the same as the term defined in 15-30-2337, MCA", and the same "nontaxable pension, annuity, and IRA payments" words sit beside line 5's basis exclusion for pensions. Read that way, (2)(d) works with (9)(b), and the conflict is only with line 4's instructions.
    • The other reading is that "all ... nontaxable ... IRA payments" displaces the basis reduction for IRAs.

    This matters once issue 11198 adds a basis input: the register shouldn't already say full count from 2024 was decided. Please match issue 11198's IRA paragraph to the same framing.

Optional

  • Source captures. The note says the 2024 ARM text and the two instruction pages aren't captured. CONTRIBUTING step 1 asks the PR to add them under source_conflicts/sources/us-mt/.
  • Issue 11198 leaves out nontaxable rollovers, which line 5 also excludes. The PR body still sends account-distribution basis to 10802 alone.
  • Dependent path of the alimony add-back (from the first round): still no test.

DTrim99 and others added 3 commits November 20, 2026 20:47
…come

MCA 15-30-2337(9)(a) counts federal AGI plus all nontaxable income. Gross
household income now also counts alimony outside federal AGI, savings bond
interest excluded under IRC 135, income excluded under IRC 911 (Form 2555
line 45, on the head) and tax-exempt 401(k), 403(b) and SEP distributions,
which count in full as Roth IRA distributions already did. Moves the four
Montana cases from the #10812 audit into the real tests and adds edge cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he Montana IRA basis conflict

Document in gross_income_sources.yaml that no input holds basis, so Roth
401(k), 403(b) and SEP distributions count in full, as Roth IRA distributions
do (issue #11198). Register the Montana IRA basis conflict in
source_conflicts/candidates.yaml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ture its sources

Mark the Montana elderly homeowner/renter credit IRA basis entry in
source_conflicts/candidates.yaml as open, and add local captures of
ARM 42.4.301 (2024) and the Form 2 instructions (2024 p. 47, 2025 p. 45)
that the entry cites.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DTrim99
DTrim99 force-pushed the mt-elderly-credit-income branch from 6fcf305 to f3aec76 Compare November 21, 2026 01:49
@DTrim99

DTrim99 commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks, Ziming. Fixed in f3aec76, rebased on main.

Fixed (your "Before merge" item)

  1. us-mt:elderly-credit-ira-distribution-basis is now state: open. follows: conflicting-source stays as a description of what the code does.

Also done (your optional item): captures under source_conflicts/sources/us-mt/, per CONTRIBUTING step 1:

  • arm-42-4-301-2024.html: the 9/7/2024 rule page, downloaded the same way as the existing 2013 capture. It has no scripts or tokens.
  • form-2-instructions-2024-p47.txt and form-2-instructions-2025-p45.txt: Schedule 2EC lines 4 and 5. The existing ...-2025-p47.txt covers lines 23-29, so nothing is duplicated.

The entry's note names all three files. All nine of its quotes match the captures word for word.

Skipped (optional, not in this round): a test for the dependent path of the alimony add-back.

Verification: the source-conflict tests (251) and the Montana elderly homeowner/renter credit directory (199) pass locally. An independent check confirmed nothing in the entry still implies a ruling, and that the captures are clean.

@DTrim99
DTrim99 requested a review from hua7450 November 21, 2026 01:50

@hua7450 hua7450 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, David. The us-mt:elderly-credit-ira-distribution-basis entry is now state: open, follows: conflicting-source describes what the code does, and the note gives both readings of ARM 42.4.301(2)(d). The three captures are genuine: the ARM text matches the rules.mt.gov original, and the two instruction pages match the official PDFs. All nine quotes appear in them or in the statute. Issue 11198 now covers rollovers. Nothing in the model changed. Approving.

Optional:

  • Issue 11198 quotes ARM (2)(d)'s words ("all federal taxable and nontaxable ... IRA payments") as Schedule 2EC line 4's. Line 4 reads "Enter all IRA distributions, both taxable and nontaxable". The register entry has both right.
  • From the first round, still open: a test for the dependent path of the alimony add-back.

@DTrim99
DTrim99 merged commit 902a914 into main Nov 23, 2026
37 checks passed
@DTrim99
DTrim99 deleted the mt-elderly-credit-income branch November 23, 2026 14:30
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.

2 participants