Fix MT Elderly Homeowner/Renter Credit eligibility cap#8548
Open
PavelMakarchuk wants to merge 4 commits into
Open
Fix MT Elderly Homeowner/Renter Credit eligibility cap#8548PavelMakarchuk wants to merge 4 commits into
PavelMakarchuk wants to merge 4 commits into
Conversation
Closes #8547 - Apply the multiplier phase-out to the tax-unit-aggregated gross household income, not the per-person value, per § 15-30-2337(4). - Add the untaxed portion of Social Security to the gross household income sources so all SS is counted per § 15-30-2337(9)(a)(viii). - Add an integration test for a joint filer above the $45,000 cap. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8548 +/- ##
===========================================
+ Coverage 94.69% 100.00% +5.30%
===========================================
Files 7 2 -5
Lines 113 38 -75
Branches 2 0 -2
===========================================
- Hits 107 38 -69
+ Misses 6 0 -6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Multiplier uses household-aggregated GHI (per-person GHI under threshold; tax-unit sum lands in phase-out bracket). - Credit = 0 at exactly $45,000 GHI boundary. - Full untaxed Social Security counted in the gross household income variable. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Add veterans_benefits, child_support_received, strike_benefits, and general_assistance to the statutory list of nontaxable income items counted toward gross household income, covering items (i), (iv), (v), and (vi). Add a test asserting they are all summed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Federal AGI already includes the taxable portion of pension and IRA distributions (via taxable_pension_income and taxable_retirement_distributions). The gross income sources list was adding pension_income and taxable_ira_distributions on top of AGI, causing the taxable portions to be counted twice. Replace pension_income with tax_exempt_pension_income and drop taxable_ira_distributions; the existing tax_exempt_ira_distributions still captures the Roth portion not in AGI. Verified: a single MT filer with \$10,000 taxable pension or taxable IRA distribution now produces \$10,000 of gross household income (was \$20,000). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Closes #8547.
Two bugs caused the Montana Elderly Homeowner/Renter Credit to be granted to filers above the $45,000 gross household income cap mandated by § 15-30-2338(1)(d):
gross_household_income, but § 15-30-2337(4) defines GHI at the household level. Now aggregated to the tax unit before the multiplier lookup.adjusted_gross_income_person, which only includes the taxable SS portion. § 15-30-2337(9)(a)(viii) requires all federal social security payments. The gross household income variable now adds the untaxed SS portion (social_security - taxable_social_security) on top of the parametric source list.Test plan
🤖 Generated with Claude Code