Implement Maine PTFC unknown-utilities 15% rule (Schedule PTFC line 5c) - #9267
Implement Maine PTFC unknown-utilities 15% rule (Schedule PTFC line 5c)#9267DTrim99 wants to merge 2 commits into
Conversation
Maine's property tax fairness credit computes rent constituting property taxes as 15% of rent, after excluding any heat/utilities included in the rent. Schedule PTFC/STFC line 5c provides that when the rent includes utilities but the amount is not known, 15% of gross rent is treated as the utility portion. me_property_tax_fairness_credit_countable_rent previously left that fallback unimplemented, so a filer whose rent includes utilities but who did not itemize a utility amount received no utility exclusion. Add the 15% fallback and a parameter for the fraction. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9267 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 5 2 -3
Lines 83 27 -56
=========================================
- Hits 83 27 -56
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:
|
PavelMakarchuk
left a comment
There was a problem hiding this comment.
The implementation mechanics check out — all 34 tests in the ME PTFC suite pass on the branch, the new parameter loads with correct metadata, utilities_included_in_rent defaults to false so microsim defaults are unaffected, no partner contract tests are touched, and the worksheet math in the new test (127.5 = (1000 − 150) × 0.15) is internally consistent with the quoted form text.
Requesting changes for two findings on the rewritten formula, detailed inline:
utility_expenseis the wrong "amount known" discriminator — it's the household's general SNAP-style utility expense total, not the utility portion of rent, so the new 15% fallback only fires when the household reports zero utility expenses of any kind, and separately-paid utilities get subtracted from rent.- No clamp when utilities exceed rent — countable rent can go negative and offsets
real_estate_taxesdownstream; line 5d on the form can never be negative.
Caveat: maine.gov was unreachable from the review environment, so the line-5c rule was verified against the PR's quoted form text and worksheet example rather than the form PDF itself.
Generated by Claude Code
…ator and clamp - F1: the known/unknown split for the utility portion of rent was keyed on the household's general utility_expense (SNAP-style total), making the line-5c 15% fallback unreachable whenever any utility expense was reported and subtracting separately-paid utilities from rent. Add a dedicated me_ptfc_utilities_included_in_rent amount and drive the split off the utilities_included_in_rent boolean + that amount: not included -> no subtraction; included & known -> subtract it; included & unknown -> subtract the 15%-of-rent estimate. - F2: clamp net rent with max_(rent - utility_portion, 0) so countable rent can never go negative and offset real_estate_taxes downstream (Schedule PTFC line 5d >= 0). - Tests: add a separately-paid-utilities case (1,530, inverts if F1 reverted) and a utilities-exceed-rent clamp case (0). ME PTFC suite 36/36. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Fixes applied from @PavelMakarchuk's reviewBoth findings addressed and pushed (ME PTFC suite 36/36). Thanks for the catch — both were masked by the old tests. F1 — wrong known/unknown discriminator (fixed)You're right that
Your concrete case now resolves to the form's F2 — clamp when utilities exceed rent (fixed)
TestsAppended two demonstrating cases that fail if either fix is reverted:
The existing known-amount case 🤖 Generated with Claude Code |
Surfaced by PolicyEngine/policyengine-taxsim#1126 (ME renter with rent that includes utilities).
Problem
Maine's property tax fairness credit treats 15% of rent as "rent constituting property taxes," after first excluding any heat/utilities included in the rent. Per 2022 Schedule PTFC/STFC line 5c: if the rent includes utilities and the amount is known, subtract it; if the rent includes utilities and the amount is not known, subtract 15% of gross rent instead.
me_property_tax_fairness_credit_countable_rentonly handled the known-amount case (utilities_included_in_rent * utility_expense) and its comment noted the unknown-amount branch was "not implemented." So a filer whose rent includes utilities but who did not itemize a utility amount received no utility exclusion at all, overstating the countable rent (and the credit).Fix
utilities_included_in_rentis true and the utility amount is unknown (utility_expenseis 0), deduct 15% of gross rent before applying the 15% rent-constituting-property-tax rate.gov.states.me.tax.income.credits.fairness.property_tax.rate.utilities_included_in_rent(0.15) for the utility fraction.Example
Rent $17,139 with utilities included, amount unknown: utility portion = 15% × 17,139 = 2,571; countable rent = 15% × (17,139 − 2,571) = 2,185, matching the Maine worksheet (previously PE used the full 15% × 17,139 = 2,571). The known-amount and utilities-not-included cases are unchanged.