Skip to content

Count all Rhode Island property tax relief household income - #11168

Merged
hua7450 merged 3 commits into
mainfrom
ri-property-tax-relief-household-income
Nov 20, 2026
Merged

hua7450 merged 3 commits into
mainfrom
ri-property-tax-relief-household-income

Conversation

@DTrim99

@DTrim99 DTrim99 commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Part of #10812 (state credit income audit).

What was wrong

ri_property_tax_household_income (RI-1040H line 32) summed one tax unit's federal AGI and a short list of non-taxable items. Against R.I. Gen. Laws 44-33-3(5)-(7) it:

  • missed every other tax unit in the household;
  • let federal AGI's business, rental, pass-through and capital loss deductions and the section 911 exclusion reduce income;
  • counted alimony from a pre-2019 divorce twice (once in AGI, once as alimony_income);
  • left out veterans' benefits, the non-taxable part of IRA and 401(k)-type distributions, general assistance, SSI, the Rhode Island state supplement and tax-exempt disability benefits.

What changes

Sources: R.I. Gen. Laws 44-33-3 (HTML, no pages) and the 2025 Form RI-1040H, page 2 (Part 5, lines 14-32) and page 3 (definition of household income).

  • Whose income. 44-33-3(6): "all income received by all persons of a household"; (5) a household is "one or more persons occupying a dwelling unit and living as a single nonprofit housekeeping unit". RI-1040H page 3: "the taxable and non-taxable income of all household members must be included in part 5". A new tax-unit variable ri_property_tax_income holds one tax unit's income (adds the source list). ri_property_tax_household_income now sums it over the household, counting each tax unit once through its head (person.household.sum), and gives each tax unit that total through its members. SPM-unit amounts such as tanf reach each tax unit as its members' share, so the household sum counts them once.
  • Loss addbacks (limited_business_loss, limited_capital_loss). 44-33-3(7): income "shall not include any deductions for rental losses, business losses, capital losses, exclusion for foreign income, and any losses received from pass-through entities"; RI-1040H line 31 (page 2): "Addback of rental losses, etc. from lines 18, 19, 21, 22 or 25 above".
  • Section 911 (section_911_excluded_income): the same sentence's "exclusion for foreign income". The variable also holds the section 911(c)(4) housing deduction (Form 2555 line 50), which I counted as part of the section 911 amount.
  • Alimony. alimony_income is replaced by a new person variable ri_property_tax_nontaxable_alimony = alimony_income − taxable_alimony_income (the AZ/ND pattern). Taxable alimony already reaches RI-1040H line 17 through AGI, and the statute counts "alimony" once.
  • New list entries, each from 44-33-3(7):
    • veterans_benefits: "veterans' disability pensions";
    • tax_exempt_retirement_distributions: "the gross amount of any pension or annuity". RI-1040H line 20 (page 2) takes IRA distributions, pensions and annuities from Form 1040 lines 4a and 5a, the gross amounts;
    • general_assistance: "cash public assistance and relief" (line 29);
    • ssi and ri_ssp: "all payments received under the federal Social Security Act, 42 U.S.C. § 301 et seq.". R.I. Gen. Laws 40-6-27(a)(1) describes SSI as "established by Title XVI of the Social Security Act, 42 U.S.C. § 1381 et seq.", and sets the state supplement as supplementary assistance under that program. Both are also cash public assistance;
    • tax_exempt_disability_benefits: "the gross amount of 'loss of time' insurance".

Line 31: each loss, not only a negative form line

The review left open whether line 31 adds back a loss only when a whole form line is negative, for example when a rental loss nets against estate or S corporation income on line 21. I chose to add back each loss. The 2025 line names kinds of loss ("rental losses, etc.") and the lines where they are reported. It doesn't say the line total must be negative. Its predecessor, line 8 of the 2012 Form RI-1040H, applied the addback to federal AGI and spelled out the list: "Addback of rental losses, business losses, capital losses, exclusion of foreign income and losses from pass-through entity". The statute bars "any deductions for rental losses ... and any losses received from pass-through entities", and a rental loss that offsets other income on Schedule E is still deducted. limited_business_loss is exactly that: each member's business, farm, rental, estate and partnership or S corporation loss, as allowed in federal AGI.

Capital losses work differently. They net against capital gains on Schedule D before Form 1040 line 7a, which line 19 starts from. So only the net capital loss deducted from other income (limited_capital_loss, up to $3,000) is added back, not capital_losses_allowed_against_gains.

Who is affected

This affects Rhode Island property tax relief claimants (aged 65 or older, or disabled) whose household has any of these:

  • Household income rises: losses, foreign earned income, veterans' benefits, non-taxable retirement account distributions, general assistance, SSI or the state supplement, tax-exempt disability benefits, or members who file their own returns. Their credit falls or ends, and because the credit is refundable (RI-1040 line 14c), their Rhode Island income tax rises.
  • Household income falls: recipients of pre-2019 alimony, which now counts once. Their credit rises and their tax falls.

SSI recipients are likely the largest group.

Tests

  • Moved from Audit state credit income definitions against the law (CI run, do not merge) #10812 into the new ri_property_tax_household_income.yaml: all nine cases (business loss, capital loss, pre-2019 alimony, veterans' benefits, Roth IRA, general assistance, tax-exempt disability, section 911, a second tax unit in the household). Expected values are unchanged. Following the review, I dropped age: 70 from the single-person cases and used age 64 for the parent in the household case. Age isn't read here, but at 70 PolicyEngine pays SSI, which now counts.
  • Added:
    • a capital loss exactly at the $3,000 limit;
    • a capital loss that only offsets capital gain distributions (not added back);
    • a rental loss netted against estate income on the same form line (added back);
    • post-2018 alimony (counted as non-taxable income);
    • SSI and state supplement inputs;
    • SPM-unit TANF shared by two tax units, counted once;
    • an end-to-end 70-year-old homeowner with a pension and veterans' benefits. Household income is 18,000 and the credit is min(1,500 − 18,000 × 6%, 700) = 420; on main it is 700.
  • Changed: in six 2025 cases in ri_property_tax_credit_eligible.yaml, each claimant is 65 or disabled with no income, and the expected credit of $700 assumes household income of $0. Once SSI counts, PolicyEngine pays these people SSI and the state supplement, which would raise household income and change a case meant to test who may claim. I set ssi: 0 and ri_ssp: 0 for each person so household income stays $0. No expected value changed.

Not in this PR

Other Rhode Island gaps from the #10812 audit:

Tested on Modal: run w1-ri-a, 244/244 passed (the Rhode Island test folder, every partner test, the other Rhode Island household tests outside the folder, and the source-conflict guard).

🤖 Generated with Claude Code

@codecov

codecov Bot commented Nov 19, 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 (f25651e).
⚠️ Report is 238 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main    #11168   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         4    +3     
  Lines           24        65   +41     
  Branches         0         1    +1     
=========================================
+ Hits            24        65   +41     
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 requested a review from hua7450 November 20, 2026 00:31

@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 income list and the new alimony logic match R.I. Gen. Laws 44-33-3(5)-(7) and RI-1040H Part 5. Alimony is counted once for pre-2019 divorces (through AGI) and for post-2018 ones (as nontaxable income), the household aggregation and the gift and in-kind exclusions follow the statute, and all 17 new expected values derive by hand. Two fixes before I approve.

Before merge

  1. The rate column still uses tax-unit size. ri_property_tax_credit.py (lines 16-20) picks the column with tax_unit_size == 1, while income is now the whole household's. R.I. Gen. Laws 44-33-9(1) keys the percentage to household size (RI-1040H line 1f). In 2025, a parent aged 70 with a 13,000 pension and 1,500 of property tax, living with an adult child who earns 3,000 and files separately, is a household of two with income 16,000: 5%, so 1,500 - 800 = 700. The PR gives 540 (the one-person 6%); main gives 700. Selecting the column with household_size fixes it; please add a credit assertion for a two-tax-unit household in the 13,971 to 17,460 band, where the two columns differ.
  2. Six existing cases were pinned with ssi: 0 and ri_ssp: 0. In ri_property_tax_credit_eligible.yaml (the cases at lines 133, 171, 233, 323, 359 and 394) the pins keep the outputs at 700. Unpinned, the line 394 household (single filer aged 65, no income, 1,000 of property tax) gets SSI of 11,604 and a state supplement of 479.04, so the credit is 395.85. The PR body names SSI recipients as the largest affected group, but no case lets the model compute SSI. Please keep main's inputs in at least that case and update its expected credit.

Optional

  • One claimant per household (follow-up). Every tax unit with a qualifying filer can still claim against the same household income. This is on main already.
  • Strike benefits. "Non-taxable strike benefits" is named in the statute and tax_exempt_strike_benefits exists, but it is not in the list.
  • Section 911. section_911_excluded_income also adds the 911(c)(4) housing deduction, which is not an "exclusion" and which the model's AGI never subtracts.

DTrim99 and others added 3 commits November 20, 2026 11:11
Rhode Island household income for the property tax relief credit now sums
every tax unit in the household (R.I. Gen. Laws 44-33-3(6)) and adds back
the business, rental, pass-through and capital losses and section 911
amounts that federal AGI subtracts (44-33-3(7); RI-1040H line 31). It also
counts veterans' benefits, gross retirement account distributions, general
assistance, SSI and the state supplement, and tax-exempt disability
benefits, and counts pre-2019 alimony once instead of twice.

Moves the nine Rhode Island cases from the state credit income audit
(#10812) into the variable's test file, adds edge cases, and keeps six
eligibility cases at zero household income by giving their claimants no
SSI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…out of gross income

Covers the fallback in ri_property_tax_nontaxable_alimony when federal gross
income doesn't list taxable_alimony_income, which codecov flagged as the
one uncovered patch line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hold size

Select the one-person vs two-or-more rate column with household_size
(44-33-9(1), RI-1040H line 1f) instead of tax_unit_size, update the
flat-input credit tests to set household_size, add a split-filer case,
and restore main's inputs for the SSI/SSP eligibility case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DTrim99
DTrim99 force-pushed the ri-property-tax-relief-household-income branch from 7c7f25a to f25651e Compare November 20, 2026 16:13
@DTrim99

DTrim99 commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator Author

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

Fixed (your "Before merge" items)

  1. Rate column by household size. ri_property_tax_credit now picks the rate column by household size, under 44-33-9(1) and RI-1040H line 1f, not by tax_unit_size. New Case 14 is your 2025 household: a parent aged 70 with a 13,000 pension and 1,500 of property tax, and an adult child with 3,000 of wages filing separately. Household income is 16,000, so the rate is 5% and the credit 1,500 − 800 = 700. The one-person column gave 540.
  2. The line-394 case uses main's inputs. The ssi: 0 / ri_ssp: 0 pins are gone. The model now computes SSI of 11,604 and a state supplement of 479.04, so household income is 12,083.04 and the credit 1,000 − 604.15 = 395.85.

Skipped (optional, not in this round): one claimant per household (a follow-up, same as on main), strike benefits and Section 911.

Verification: the RI property tax credit tests pass locally after the rebase (51/51). An independent check confirmed both values by hand. One note: Case 14's 700 is also the credit cap, so it separates 5% from 6% but wouldn't catch a wrong lower rate.

@DTrim99
DTrim99 requested a review from hua7450 November 20, 2026 16: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. Both fixes are in. ri_property_tax_credit picks the column by household_size, and new Case 14 pins the two-tax-unit household at 700 (the one-person column would give 540). The single filer aged 65 keeps main's inputs and now expects 395.85 with modeled SSI and the state supplement. Comparing the PR's own diff before and after the rebase, those are the only changes; the existing unit cases switch their size input from tax_unit_size to household_size to match the formula. Approving.

@hua7450
hua7450 merged commit e0323be into main Nov 20, 2026
40 checks passed
@hua7450
hua7450 deleted the ri-property-tax-relief-household-income branch November 20, 2026 17:38
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