Skip to content

Subtract Wisconsin medical care insurance premiums and carry the subtraction into homestead household income - #11695

Open
DTrim99 wants to merge 5 commits into
mainfrom
wi-homestead-medical-insurance-subtraction
Open

DTrim99 wants to merge 5 commits into
mainfrom
wi-homestead-medical-insurance-subtraction

Conversation

@DTrim99

@DTrim99 DTrim99 commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #10812 (state credit income audit).

What was wrong

wi_homestead_income (Schedule H line 13) starts from federal adjusted gross income. Wis. Stat. 71.52(6) starts household income from Wisconsin adjusted gross income, which is net of Wisconsin's medical care insurance subtraction, and doesn't add that subtraction back. The model didn't have the subtraction at all, so it also overstated Wisconsin income tax for anyone who pays medical care insurance premiums after tax.

The subtraction is four subdivisions of 71.05(6)(b), not one (the audit cited (b)28, which is the tuition subtraction):

Subdivision Who Amount
19 self-employed 100% of the amount paid
35 employee whose "employer pays no amount of money toward" the coverage 100%
38 "no employer and no self-employment income" (retirees) 100%
42 employee whose "employer pays a portion of the cost" 100%

Each one then subtracts "the amounts deducted from gross income for medical care insurance in the calculation of federal adjusted gross income" (b.) and limits the result to income taxable by Wisconsin (d.). The 2025 Schedule SB instructions (line 6, pages 2-3) count Medicare premiums withheld from Social Security ("for example, Parts B and D"), exclude employer-paid and pretax premiums, and cap the subtraction at "line 5 of Form 1 less the amount on line 50 of Schedule SB without considering the subtraction for medical care insurance" (Worksheet 2, line 6). The 2021 instructions (pages 3-4) have the same worksheets.

What changes

  • New wi_medical_care_insurance_subtraction (Schedule SB line 6). It takes the filers' medical_expense_health_insurance_premiums, the existing aggregate of after-tax, person-paid premiums that already leaves out employer-paid and pretax payroll premiums and adds the modeled Medicare Part B premium when no premium is entered. It subtracts itemized_medical_expenses_excluded_premiums, the medical part of the federal self-employed health insurance deduction (Worksheet 1, line 2, which leaves out long-term care). It then limits the result to federal AGI plus Wisconsin additions less the other Schedule SB subtractions, floored at zero. The elective retirement income subtraction ("up to $5,000") is left out of that limit, as in the 2025 Schedule H instructions, Example 1 (page 12). All four groups get 100% of what they paid, so the employer-paid share needs no input.
  • wi_income_subtractions adds the new subtraction to the existing sources.yaml total. It isn't listed in sources.yaml because its cap is computed from that list; the list's description now says so. It then reduces the retirement income subtraction by the overlap, which is the part of the medical subtraction above the income left after all other subtractions. Total subtractions, and so Wisconsin tax, stay what they are with the full retirement subtraction taken first.
  • New wi_itemized_deduction_credit_medical_expense_deduction, used by wi_itemized_deduction_credit_potential in place of medical_expense_deduction. Wis. Stat. 71.07(5)(a)15 excludes the medical care insurance subtracted on Schedule SB line 6 from the credit. The variable applies lines 1-5 and 10-12 of the 2025 Form 1 instructions worksheet (pages 16-17): it prorates the federal medical deduction by the premium share and removes the part subtracted.
  • wi_homestead_income subtracts it, since 71.52(6) starts from Wisconsin AGI and doesn't add it back. The 2025 Schedule H instructions (line 8c, pages 11-12) take the same subtraction on the no-return path. No double count: federal AGI already nets the self-employed deduction, and the Wisconsin subtraction excludes those premiums.
  • Assumption: premiums are taken as paid after any advance premium tax credit, with no reconciliation at filing (Worksheets 1 and 2, lines 2-7 net out to that case).

Who is affected

  • Wisconsin income tax falls for filers who pay medical care insurance premiums after tax and have Wisconsin income left after the other subtractions. A single employee with 40,000 of wages and 2,400 of after-tax premiums: Wisconsin AGI falls from 40,000 to 37,600 and 2025 tax from 1,108.42 to 990.14. Retirees with Medicare Part B premiums are the largest group, since the model now computes those premiums for Medicare enrollees.
  • Homestead household income falls by the subtraction, so the credit rises (it is refundable, so Wisconsin tax falls by the same amount). A 70-year-old homeowner with 3,000 of interest, 12,000 of Social Security, 1,735 of Medicare premiums and 1,000 of property tax: household income 13,265 instead of 15,000, credit 434.19 instead of 312.26.
  • The itemized deduction credit no longer counts subtracted premiums. A single employee with 40,000 of wages, 6,000 of after-tax premiums and 14,000 of other medical costs has 11,900 of medical expenses for the credit instead of 17,000. The credit is (11,900 − 11,826) × 5% = 3.70 instead of 258.70, and 2025 tax is 809.04 (main: 1,108.42 − 294.70 = 813.72).
  • Example 1 claimants: with the limit set before the elective retirement subtraction, Example 1 gives household income 10,765. With $1,000 of property tax, the credit is 609.89.

Tests

  • Moved from Audit state credit income definitions against the law (CI run, do not merge) #10812: audit case 9 (Schedule H instructions Example 1, main 12,500 vs. 10,765) is wi_homestead_income.yaml Case 34, with the example's own inputs: 500 + 1,235 − 1,735 + 10,000 + 765 = 10,765. wi_homestead_credit.yaml Case 9 adds $1,000 of property tax: (1,000 − 2,705 × 8.785%) × 80% = 609.89.
  • Added:
    • subtractions/wi_medical_care_insurance_subtraction.yaml (13 cases): retiree Medicare premiums (1,735); the cap binding (500 of 1,735) and exactly at the cap (1,735 of 1,735); an employee's after-tax premiums (Wisconsin AGI 37,600); pretax payroll premiums (0); premiums fully deducted as self-employed health insurance (0); premiums above the self-employed deduction (3,000 − 1,858.70 = 1,141.30); a dependent's own premiums left out; the modeled 2025 Part B premium (185 × 12 = 2,220) with no premium entered; a non-Wisconsin filer (0). Case 11 is a joint return with both spouses on Part B, so the summed 4,440 meets the shared 4,000 limit. Cases 12-13 leave the elective retirement subtraction out of the limit.
    • wi_itemized_deduction_credit_medical_expense_deduction.yaml (6 cases), with the worksheet arithmetic, plus a case in wi_itemized_deduction_credit.yaml: credit 3.70, tax 809.04.
    • wi_homestead_income.yaml Case 35, Example 2 without its railroad benefits: 100 + 1,859 − 1,959 = 0 (main: 100). Case 36, an employee's after-tax premiums: 15,000 − 1,200 = 13,800 (main: 15,000).
    • wi_homestead_credit.yaml Case 8, the homeowner above: (1,000 − (13,265 − 8,060) × 8.785%) × 80% = 434.19 (main: 312.26).
  • Fails on main, passes here: run against main 50af7fb, Cases 34-36 and credit Cases 8-9 fail (the new variables don't exist on main, and Case 36 gives 15,000).
  • Changed existing cases:
    • 15 cases with households aged 65 or older (8 in the Wisconsin folder, 7 in household/income/household/) keep main's inputs, so the modeled Part B premium is subtracted. The new expected values have their arithmetic in comments; for example, a 68-year-old with a $41,250 pension pays 18.20 instead of 96 on the exclusion path. Two existing homestead income cases also change because the limit leaves out the retirement subtraction: Case 6 goes from 23,500 to 21,403.60, and Case 7 (2020) from 19,500 to 17,764.80.
    • wi_income_tax.yaml "PolicyBench scenario 091" enters 1,800 of after-tax premiums, which are now subtracted. Expected tax goes from 878.52 to 789.82: the standard deduction phase-out gives back 12% × 1,800 = 216, taxable income falls 2,016, × 4.4% = 88.70.
  • Local runs on this branch after the review fixes and the rebase on main: the Wisconsin tax YAML folder plus household/income/household/ all pass (535). This includes main's new blind worker transportation credit file, where three cases with a 67-year-old now subtract the modeled Part B premium (5,770.80). The other YAML files with Wisconsin households: 93/93. code_health (source conflicts, parameter keys, reference URLs, non-refundable credit consumers, entity sums): 411/411. Wisconsin Python tests: 14/14. No partner test has a Wisconsin household.

Not in this PR

  • Long-term care insurance subtraction (Schedule SB line 7, also in Schedule H line 8c). long_term_health_insurance_premiums exists, but the subtraction has its own rules and isn't added here. The itemized deduction credit worksheet's long-term care lines (6-9 and 13-14) wait for it.
  • Premium tax credit reconciliation (Worksheets 1 and 2, lines 2-7) and Schedule C or F premiums for an employee spouse (Worksheet 1, line 3).
  • The line 16 retirement income exclusion path computes its tax from the standard path's taxable income, so the medical subtraction's cap isn't recomputed on that path.

Overlap: #10696 adds taxable_railroad_benefits to subtractions/sources.yaml on other lines; it is compatible and would enter the cap as another subtraction. #10722 and #10693 append cases to wi_homestead_income.yaml and wi_homestead_credit.yaml, so whichever merges second resolves an end-of-file conflict.

axiom: TheAxiomFoundation/rulespec-us#2935 queued

🤖 Generated with Claude Code

@codecov

codecov Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff            @@
##              main    #11695   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         3    +2     
  Lines           24        51   +27     
=========================================
+ Hits            24        51   +27     
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 Harness.
📢 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.

@DTrim99
DTrim99 marked this pull request as ready for review December 3, 2026 15:06
@DTrim99
DTrim99 requested a review from hua7450 December 3, 2026 15:06

@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 subtraction follows 71.05(6)(b)19, 35, 38 and 42:

  • 100 percent of premiums paid in every year from 2021;
  • less what was deducted federally;
  • capped at income per return, as Worksheets 1 and 2 do.

The premium aggregate is the right one. It covers dental, vision and Medicare Parts B and D, leaves out employer-paid, pretax and long-term care premiums, and nets the self-employed deduction. Treating premiums as paid net of the advance credit is a fair simplification. Homestead income now takes the subtraction out, as 71.52(6) and Schedule H line 8c require. There's no cycle, and the changed expected values follow from the subtraction. One fix before I approve.

Before merge

  1. The same premiums still count in the itemized deduction credit. wi_itemized_deduction_credit_potential (lines 37-41) adds the full federal medical_expense_deduction, which includes premiums.
    • The rule: Wis. Stat. 71.07(5)(a)15 excludes "The amount claimed as a deduction for medical care insurance under section 213 of the Internal Revenue Code that is exempt from taxation under s. 71.05 (6) (b) 19., 35., 38., and 42." The 2025 Form 1 instructions (pages 16-17) give a worksheet: it prorates the federal medical deduction by the premium share and removes the part subtracted on Schedule SB line 6.
    • Why it's new: before this PR nothing was subtracted, so counting premiums in the credit was right.
    • Example (2025): a single employee has $40,000 of wages, $6,000 of after-tax premiums and $14,000 of other medical costs. The worksheet allows 11,900 of medical expenses, so the credit is (11,900 − 11,826) × 5% = 3.70. The PR gives 258.70, so Wisconsin tax is $255 too low.
    • Fix: apply worksheet lines 1-5 and 10-12 to the medical part of the credit (the long-term care lines can wait for line 7), and add a case like this one.

Worth fixing here

  • The cap takes the retirement subtraction first. The cap subtracts the full retirement income subtraction, but that subtraction is elective ("up to $5,000"). In Example 1 of the 2025 Schedule H instructions, the filer takes only $765 of the pension subtraction so all $1,735 of premiums can be subtracted. That gives household income of 10,765.
    • The model: it gives 12,000. With $1,000 of property tax added, the credit is 523.10 instead of 609.89.
    • Fix: compute the cap without the retirement subtraction, then reduce the retirement subtraction by the overlap. Wisconsin tax stays the same, and the result matches the example.
    • This is the cap the PR adds, so fixing it here is easiest. Otherwise, please open an issue and link it.

Optional

  • Cap wording. The statute limits the subtraction to "wages, salary, tips, unearned income, and net earnings from a trade or business that are taxable by this state". The worksheet instead uses Form 1 line 5 less the other subtractions, which also nets federal adjustments such as IRA contributions. The difference only reaches the homestead credit, and the PR follows the worksheet. A one-line comment noting it would help.
  • A joint-return case. All new subtraction cases are single filers. One married couple (both on Part B, or one self-employed) would pin the head-plus-spouse sum and the shared cap.
  • Part B pins. 15 existing cases for people 65 and older now set medicare_part_b_enrolled: false to keep their expected values. Part A alone is unusual at those ages, so keeping main's inputs and updating the expected values would keep the households realistic. The ssi: 0 inputs in the new homestead Cases 8 and 34 can go, since their comments already show SSI is 0.
  • income -= ... in wi_homestead_income.py (line 55) could be written as income = income - ....

DTrim99 and others added 2 commits December 3, 2026 14:42
…raction into homestead household income

Adds wi_medical_care_insurance_subtraction (Wis. Stat. 71.05(6)(b)19, 35, 38, 42;
Schedule SB line 6), limited to Wisconsin income before it, and takes it out of
wi_homestead_income (71.52(6); Schedule H line 8c).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…deduction credit, take the elective retirement subtraction after the premium limit, drop Part B pins

- Add wi_itemized_deduction_credit_medical_expense_deduction (Wis. Stat.
  71.07(5)(a)15; 2025 Form 1 instructions worksheet lines 1-5 and 10-12) and
  use it in wi_itemized_deduction_credit_potential.
- Limit the medical care insurance subtraction without the elective
  retirement income subtraction and reduce that subtraction by the overlap
  (2025 Schedule H instructions, Example 1); total subtractions are unchanged.
- Restore Schedule H Example 1 (household income 10,765; credit 609.89 with
  $1,000 of property tax), add a joint case, and remove the Part B pins and
  ssi inputs, updating expected values with the arithmetic.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DTrim99
DTrim99 force-pushed the wi-homestead-medical-insurance-subtraction branch from 3852604 to 8588c37 Compare December 3, 2026 19:51
@DTrim99

DTrim99 commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks for the careful review. All four points are fixed in 8588c37, which is rebased on current main.

Before merge

1. Premiums counted twice in the itemized deduction credit. Fixed.

  • New wi_itemized_deduction_credit_medical_expense_deduction applies the 2025 Form 1 instructions worksheet (pages 16-17), lines 1-5 and 10-12, under Wis. Stat. 71.07(5)(a)15. wi_itemized_deduction_credit_potential now uses it in place of the federal medical_expense_deduction.
  • Line 1 counts the premiums still in the Schedule A total, after the self-employed deduction, so it matches itemized_medical_expenses. Line 11 is wi_medical_care_insurance_subtraction.
  • The long-term care lines (6-9, 13-14) are left out, since the model has no Schedule SB line 7 subtraction yet. The ratio is exact instead of rounded to four places (noted in the code).
  • Your example, rechecked against the worksheet: line 4 = 20,000 − 3,000 = 17,000; ratio 0.3; line 5 = 5,100; line 10 = 11,900; line 12 = 0. The standard deduction on 34,000 is 11,826, so the credit is (11,900 − 11,826) × 5% = 3.70 instead of 258.70, and 2025 tax is 809.04.
  • Tests: a new wi_itemized_deduction_credit_medical_expense_deduction.yaml with 6 cases. It covers your example, a subtraction limited by income where part of the premiums still counts (1,775), no premiums, premiums subtracted in full, no expenses, and a non-Wisconsin filer. It also adds one case to wi_itemized_deduction_credit.yaml.

Worth fixing here

2. The cap takes the retirement subtraction first. Fixed.

  • wi_medical_care_insurance_subtraction now sets its limit without the elective retirement income subtraction.
  • wi_income_subtractions reduces the retirement subtraction by the overlap: the part of the medical subtraction above the income left after all other subtractions. Total subtractions are what they were with the full retirement subtraction taken first, so Wisconsin tax doesn't change. Every existing Wisconsin tax expectation still holds, apart from the Part B cases below.
  • Example 1 is restored as wi_homestead_income.yaml Case 34 with the real inputs: subtraction 1,735; retirement subtraction 2,500 − 1,735 = 765; total subtractions 2,500; household income 10,765. The new wi_homestead_credit.yaml Case 9 adds $1,000 of property tax: (1,000 − 2,705 × 8.785%) × 80% = 609.89.
  • wi_medical_care_insurance_subtraction.yaml Cases 12-13 cover the overlap, including a case where the subtraction uses all of the income and leaves no retirement subtraction.

Optional

Cap wording. Done. A NOTE on the limit quotes the statute (subd. 19.dm, 35.d, 38.d and 42.d) and says the code follows the worksheet, which also nets federal adjustments.

Joint-return case. Added as Case 11. Both spouses are 70 and on Part B (2,220 each), with 3,000 and 1,000 of interest. The subtraction is 4,000, the smaller of 4,440 and the return's shared 4,000; separate limits would give 3,220.

Part B pins. Removed: all 17 medicare_part_b_enrolled: false lines in the 15 cases, with main's inputs kept. Each updated expected value has its arithmetic in a comment. The modeled premium is 185 × 12 = 2,220 in 2025, with the income-related tiers where they apply, 174.70 × 12 in 2024 and 202.90 × 12 in 2026.

  • The household-folder cases still follow the Form 1 tables. Two exclusion-path taxes use the rate schedule because the Tax Table band is more than $1 away: 105.70 against the table's 107, and 18.20 against 19. Those notes are in the comments.
  • Two existing homestead income cases changed because of item 2, not the pins: Case 6 (2024) is now 21,403.60 and Case 7 (2020) is now 17,764.80. Their subtraction now fits within the pension.
  • The ssi: 0 inputs in homestead Cases 8 and 34 are gone. Both cases now assert ssi: 0 as an output.
  • None of these files is a partner test.
  • After the rebase, main's new wi_blind_worker_transportation_credit.yaml has three cases with a 67-year-old earning $224,000. The modeled Part B premium there is 480.90 × 12 = 5,770.80. Those cases now expect it to be subtracted, again with the arithmetic in comments: Wisconsin AGI 218,229.20, standard-path tax 10,929.36, exclusion-path tax 9,657.36. Both retirement elections are unchanged.

income -= ... Now income = income - ....

Verification

  • Wisconsin tax folder plus household/income/household/: 451/451 before the rebase. After the rebase, 532 passed and the 3 blind worker cases above failed. The rerun after fixing them, covering that folder and the PR's 10 files, passed 185/185.
  • Wisconsin Python tests (retirement election, claimable-filer and unemployment invariants, blind worker properties): 14/14.
  • Other YAML files with Wisconsin households (school meals, SALT refund integration, Medicaid deemed income): 93/93.
  • code_health (reference URLs, parameter keys, source conflicts, dead or concatenated URLs, non-refundable credit consumers, in-place writes, builtin sums): 411/411.
  • ruff format --check and ruff check are clean. No partner test reads a Wisconsin variable.

@DTrim99
DTrim99 requested a review from hua7450 December 3, 2026 19:52

@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 fixes check out at 85429bc:

  • Itemized deduction credit. The new wi_itemized_deduction_credit_medical_expense_deduction follows the 2025 Form 1 worksheet. The subtracted premiums come out after the federal 7.5% floor, matching worksheet lines 4, 5 and 12. The round-1 household's credit drops from 258.70 to 3.70.
  • Retirement subtraction order. The model now matches DOR's Schedule H Example 1: household income 10,765 and a 609.89 credit, where it gave 12,000 and 523.10. Total subtractions and Wisconsin tax are unchanged.
  • Optional items. The cap NOTE, the joint-return case (4,440 capped at 4,000), the Part B overrides and the += are all done.

One thing before I approve.

Before merge

  1. Ten cases whose expected values the fix rewrote still use absolute_error_margin: 1. Dropping the Part A overrides changed every expected value in these cases, so the margin should tighten with them:

    • wi_retirement_income_exclusion.yaml (E2E single age 68)
    • wi_retirement_income_exclusion_tax.yaml (E2E joint 67+ and the partial unlock)
    • wi_income_tax.yaml (first case)
    • household_net_income.yaml (the Wisconsin case)
    • household_state_tax_before_refundable_credits.yaml (the six Wisconsin cases)

    Some values are exact results checked only to within a dollar (303.02, 105.70, 18.20, 41,231.80, and the subtractions 2,220, 4,440 and 3,108). Others are tax table figures that pass only because of the margin: 1,172 where the model gives 1,172.81, 254 where it gives 254.02, and 926 where it gives 926.61. With a $1 margin, a small error in the new subtraction or the Part B premium feeding it would pass. Please assert the model's exact values to the cent with absolute_error_margin: 0.01, and keep the tax table figures in the comments.

Optional

  • Repeated households. The Schedule H Example 1 household is tested in three files (subtraction Case 12, homestead income Case 34, homestead credit Case 9), and the itemized-credit household in two. One full case plus the variable-level checks would do.
  • Cap NOTE. It could say why the worksheet's reading is followed where the statute's wording is ambiguous.

DTrim99 and others added 2 commits December 3, 2026 22:08
…olds, cap note

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DTrim99

DTrim99 commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks. All three items are in ce00d2b, and the merge commit after it brings in current main.

Before merge

  1. Exact cents, absolute_error_margin: 0.01. All the cases you listed now use the 0.01 margin. That's eleven cases, counting the six household ones. Every value is the rate-schedule result to the cent. The comments show the arithmetic from the 2025 standard deduction formula (13,560 less 12% over 19,550 single; 25,110 less 19.778% over 28,210 joint) and the 2025 brackets. Table figures stay in parentheses.
    • Tax-table figures replaced: 254 → 254.02, 1,172 → 1,172.81, 926 → 926.41. Two more in the same file were table figures too: 1,859 → 1,858.19 (the joint case) and 1,049 → 1,049.61 (the renter and the age-66 filer).
    • One correction: the $59,250 case comes to 926.41, not 926.61. Line 7 is 36,530 and the standard deduction is 13,560 - 12% x 16,980 = 11,522.40, so taxable income is 24,057.60. That gives 513.80 + (24,057.60 - 14,680) x 4.4% = 926.41, which matches the model (926.4145). The case name now says $926.41.
    • These were already exact and are now checked to the cent: 303.02, 105.70, 18.20, 41,231.80, 1,950.42, 477.44 and 6,324.11, plus the subtractions 2,220, 4,440 and 3,108. The comments now show the IRMAA tier behind each adjusted Part B premium. In the partial-unlock case, income deflated to two years prior is about 122,903, which is in the 106,001-133,000 tier: (185 + 74) x 12 = 3,108. In the wi_income_tax.yaml case it is about 178,604, in the 167,001-200,000 tier: (185 + 295.90) x 12 = 5,770.80.

Optional

  • Repeated households. Done, and every value that was asserted is still asserted.
    • Schedule H Example 1: homestead credit Case 9 is now the one full case. It also asserts ssi 0, AGI 2,500, the retirement income subtraction 2,000, total subtractions 2,500 and wi_agi 0. Subtraction Case 12 is now a check of the limit alone, with AGI 2,500, a 2,000 retirement income subtraction and 1,735 of premiums as inputs. Homestead income Case 34 takes the 1,735 subtraction as an input and checks line 8c alone.
    • Itemized-credit household: the case in wi_itemized_deduction_credit.yaml is now the full one. It adds the worksheet values (itemized_medical_expenses, medical_expense_deduction, the subtraction, wi_standard_deduction and the potential credit). Case 1 of wi_itemized_deduction_credit_medical_expense_deduction.yaml is now a worksheet-only check, with worksheet lines 2, 4 and 11 as inputs.
  • Cap NOTE. Done. It now says the statute doesn't say whether federal adjustments, such as IRA contributions, reduce the income the subtraction is limited to. The worksheet does subtract them, since it starts from Form 1 line 5. The model follows the worksheet because it is the Department of Revenue's published computation of the limit and the one filers use, and the statute's wording doesn't rule it out. Only the comment changed; the formula is the same.

Verification

  • The ten changed test files together: 151/151.
  • Wisconsin tax folder (gov/states/wi/tax): 448/448.
  • household/income/household/: 87/87, including household_state_tax_before_refundable_credits.yaml (10/10).
  • policyengine_us/tests/code_health/: 1155 passed, 1 skipped.
  • After merging main (c070739, which touches no Wisconsin, Medicare or household-income files): the changed Wisconsin files and the household folder pass again, 217/217.
  • ruff format --check . and ruff check . are clean.

@DTrim99
DTrim99 requested a review from hua7450 December 4, 2026 03:12

This branch has not been deployed

No deployments
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