Repository navigation
Count all Rhode Island property tax relief household income - #11168
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 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
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. 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
- The rate column still uses tax-unit size.
ri_property_tax_credit.py(lines 16-20) picks the column withtax_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 withhousehold_sizefixes 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. - Six existing cases were pinned with
ssi: 0andri_ssp: 0. Inri_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_benefitsexists, but it is not in the list. - Section 911.
section_911_excluded_incomealso adds the 911(c)(4) housing deduction, which is not an "exclusion" and which the model's AGI never subtracts.
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>
7c7f25a to
f25651e
Compare
|
Thanks, Ziming. Fixed in f25651e, rebased on main. Fixed (your "Before merge" items)
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. |
hua7450
left a comment
There was a problem hiding this comment.
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.
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:alimony_income);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).
ri_property_tax_incomeholds one tax unit's income (addsthe source list).ri_property_tax_household_incomenow 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 astanfreach each tax unit as its members' share, so the household sum counts them once.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_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_incomeis replaced by a new person variableri_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.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);ssiandri_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_lossis 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, notcapital_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:
SSI recipients are likely the largest group.
Tests
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 droppedage: 70from 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.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 setssi: 0andri_ssp: 0for 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