Repository navigation
Count missing income sources and decomposed premiums in Michigan household resources - #11183
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11183 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 24 51 +27
Branches 0 6 +6
=========================================
+ Hits 24 51 +27
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:
|
hua7450
left a comment
There was a problem hiding this comment.
Thanks, David. All six new sources and the line 31 change match MCL 206.508 and 206.510, the 2025 MI-1040 book and the MI-1040CR-7 book. Each counts for the claimant and spouse only, and none is counted twice: dependent care benefits restore the full box 10 amount once, and the retirement, Roth conversion, debt relief and survivor inputs are disjoint. The Part B premium nets Medicare Savings Program and Medicaid coverage with no cycle. Every consumer, from homestead eligibility and the exemption through Tables A and B, Worksheet 5 and both heating credits, uses the same definition, so no threshold changes. The integration case keeps main's inputs. One fix before I approve.
Before merge
- Duplicate reference entries in
household_resources.yaml(lines 109-116). The PR adds a second entry for the 2025 MI-1040 book at#page=32, but the existing entry already cites page 32 ("#page 26-27,31-32"). It also gives the CR-7 book two entries, one for#page=8and one for#page=9. Repo style is one entry per source: drop the new MI-1040 entry, adding page 33 to the existing title if line 31 should be cited, and merge the CR-7 pair into one entry titled "... #page 8-9" with href#page=8. The cited pages themselves are correct.
Optional
- Line 18 comment. It now quotes "the taxable amount on Form 1099-R" directly above
pension_income, which also counts tax-exempt pensions under 206.510(1). Behavior is unchanged from main. One line saying which reading the code follows would help, and the statute-versus-form rows the PR body defers could go into the register. - Premium tax credit (follow-up). Book page 33 says line 31 premiums are reduced by the premium tax credit, and the model doesn't net
aca_ptc. This was already true on main, and no input in this PR is shown wrong by it.
Michigan total household resources, used by the homestead property tax credit and the home heating credit, now count taxable IRA, 401(k), 403(b), SEP and Keogh distributions, taxable Roth conversions, military retired pay and survivor annuities, other survivor benefits, forgiven debt and employer dependent care benefits (2025 MI-1040 book, pages 26 and 32). Line 31 now subtracts medical_expense_health_insurance_premiums, so premiums in the decomposed inputs and the Medicare Part B premium the enrollee pays come off. Moves the Michigan cases from the state credit income audit (#10812) into the household resources tests and adds edge cases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…usehold resources Merge the duplicate MI-1040 Book and MI-1040CR-7 Book reference entries into one entry per source document, with page ranges in the titles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
63e68aa to
48156dc
Compare
|
Thanks, Ziming. Fixed in 48156dc, rebased on main. Fixed (your "Before merge" item)
Skipped (optional, not in this round): the line 18 comment on which reading the code follows, and the premium tax credit netting, which can be a follow-up. Verification:
|
hua7450
left a comment
There was a problem hiding this comment.
Thanks, David. household_resources.yaml now has one entry per source: the 2025 MI-1040 book as "#page 26-27,31-33" and the CR-7 book as "#page 8-9", each linked to its first page. Page 33 belongs there, since line 31 starts at the foot of page 32 and continues onto page 33. Nothing else changed in the PR's diff. Approving.
Part of #10812 (state credit income audit).
What was wrong
Michigan total household resources (
mi_household_resources), which the homestead property tax credit (MI-1040CR) and the home heating credit (MI-1040CR-7) both use, left out six income sources the form counts. Line 31 (health insurance premiums) read only the directhealth_insurance_premiumsinput, so premiums in the decomposed inputs never came off. That includes survey premiums and the modeled Medicare Part B premium.MCL 206.510(1) defines income as federal AGI "plus all income specifically excluded or exempt from the computations of the federal adjusted gross income", and lets a person deduct "the amount that person paid in premiums in the tax year for that insurance plan for the person's family".
What changes
Each new list entry in
gov.states.mi.tax.income.household_resourcesis cited from the 2025 MI-1040 book (page 26 and page 32) and the matching MI-1040CR-7 lines (2025 CR-7 book, pages 8 and 9). The 2022 book has the same wording.taxable_retirement_distributionstaxable_roth_conversionsmilitary_retirement_incomesurvivor_benefitssurvivor_benefitsout, but MCL 206.510(1) adds excluded incomedebt_reliefdependent_care_employer_benefitsirs_employment_incomedrops all of W-2 box 10, both the IRC 129 exclusion and the taxable part, so the whole amount is added back onceLine 31 now reads
medical_expense_health_insurance_premiumsinstead ofhealth_insurance_premiums. It uses a nonzero direct input. Otherwise it uses the decomposed inputs:health_insurance_premiums_without_medicare_part_bplus the modeled Part B premium the person pays, net of Medicare Savings Program and Medicaid buy-in coverage. Pretax payroll premiums stay out, which matches page 33: "Do not include ... amounts paid by an employer with pre-tax payroll contributions".The line-21 netting comment still holds and now covers modeled Part B premiums. MCL 206.510(1)(h) excludes "Amounts deducted from monthly social security or railroad retirement benefits for medicare premiums", and line 21 says such premiums "should be deducted". The model enters gross benefits on line 21 and the premium on line 31, so the premium comes off once either way. A Part B premium billed to the enrollee instead of withheld is medical insurance on line 31.
The self-employed health insurance overlap logic is unchanged. Its medical part takes premiums only from the direct input, which is what line 31 holds whenever that input is nonzero. I updated the comments to say so.
Who is affected
These are Michigan homestead property tax credit and home heating credit claimants. Both credits are refundable.
Tests
Moved from #10812 into
mi/tax/income/mi_household_resources.yaml: all 7 Michigan cases (IRA/401(k), military retired pay, Roth conversion, forgiven debt, employer dependent care, survivor benefits, premiums without Part B). I dropped the "Main:" framing and kept the arithmetic. One change: the IRA and military cases usedage: 68. A 68-year-old now has the Part B premium on line 31, so I set the age to 64 to keep each case about line 18; the expected values are unchanged. The military case notes #10890, per the review.Added:
employment_income_before_lsr, because Michigan FIP reads pre-LSR wages, and wages set throughemployment_incomewould hand the family a FIP grant.mi_homestead_property_tax_credit_eligible.yaml: $60,000 of wages plus $11,500 of IRA distributions is exactly the $71,500 limit and eligible; $11,501 is above it and ineligible.Existing test changed:
homestead_property_tax/integration.yaml, the case formerly named "2025 household resources above line 33 limit, ineligible". The 65-year-old Medicare enrollee now has the 2025 Part B premium on line 31. The countable income for the Medicare Savings Programs is $6,087 a month, far above the limits. Values:I worked the credit out by hand in the comment. Table A gives $1,900, and the Table B phase-out leaves 10%, or $190. Worksheet 5 (rent 62,436 − 40% × 71,068 = 34,008.80) is larger, so the credit is the $1,900 maximum. Worksheet 5's line E takes "the larger of line A or line D" and goes to line 44 without a further phase-out (2025 book, page 34). I renamed the case and added the pre-alternate and alternate amounts as outputs. The $71,500 limit is still covered by the existing direct-input cases and the new IRA cases.
Not in this PR
The other Michigan rows in the audit:
illicit_income, which is in federal gross income but not on the list (line 20)section_911_excluded_income, the foreign earned income exclusion (RAB 2015-18)Line 31 also says premiums must be reduced by the federal premium tax credit. I didn't check how the decomposed premium input relates to the PTC.
Tested on Modal: run
w1-mi-c, 262/262 passed (253 YAML files: every Michigan test, every partner test, and the other test files that set a Michigan household; plus 9 Python files: the four Michigan household resources property tests, the premium input contract, source conflicts, military retirement readers, reference URLs and parameter YAML keys).🤖 Generated with Claude Code