Repository navigation
Subtract the Massachusetts TAFDC dependent care deduction once per unit - #10257
PavelMakarchuk wants to merge 2 commits into
Conversation
ma_tafdc_partially_disregarded_earned_income subtracted the unit's whole dependent care deduction from each member (half for each spouse on a joint return), and floored each result at zero. Two earners on separate returns deducted the cost twice, and a one-earner joint return lost half of it. 106 CMR 704.275(A) allows the unit's actual expenditure up to the maximum, after the 50% disregard. The deduction is now shared among members by their earnings after the 50% disregard, so it is subtracted once in total. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR Review: Subtract the Massachusetts TAFDC dependent care deduction once per unitSummaryThe PR changes one formula,
Six YAML cases are added. The other changes are a reference to 106 CMR 704.275 and a
The suggestions cover one more test, a 704.500 citation, and pre-existing items for a follow-up issue. Critical (must fix)None. Should address1. Add the The body (head
Fix: add The modules do differ from PolicyEngine on points outside this PR. They take the hours band from the member's own hours, give $0 at zero hours, apply the 100% disregard per member, and round the grant down with a $10 minimum (Suggestion 3). None of these is the provision this PR changes, so they don't block Suggestions
Verified correct
Axiom line assessmentThe line is missing (Should 1). The correct line is Searches of rulespec-us issues for "TAFDC", "704.275", "9983" and "10257" find only #1087 (a 704.230 attestation issue). So no new issue is needed for this provision. The remaining PolicyEngine/rulespec differences in Suggestion 3 belong in a policyengine-us follow-up issue. CI statusAll 27 checks pass at Branch statusThe branch is 2 commits ahead of main (the change on 2026-10-16 and a merge of main on 2026-10-23) and 48 behind.
Verdict: REQUEST_CHANGES |
DTrim99
left a comment
There was a problem hiding this comment.
The fix is right: 106 CMR 704.275(A) applies the deduction after the 50% disregard, capped at actual cost, and 704.500(A) Steps 2-4 go per member and then total. The proportional shares sum to max(U - D, 0), and all 13 expectations hand-check. One should-address item: there's no axiom line, and rulespec already encodes this, so add 'axiom: us-ma/regulations/106-cmr/704/500 encoded-correct'. Three suggestions, including a two-earner, two-child case below the cap. Full report in the comment above.
Summary
ma_tafdc_partially_disregarded_earned_income(Person) subtracted the SPM unit's wholema_tafdc_dependent_care_deductionfrom each member's half-disregarded earnings, or half of it for each member on a joint return. It then floored each member's result at zero. As a result:106 CMR 704.275(A) says the deduction "is made after the 50% disregard has been deducted". It also says: "In all situations, the amount allowed for dependent care is the actual expenditure for dependent care ... or the maximum allowable deduction, whichever is less". So the unit's deduction comes off once.
With this PR, each member carries a share of the unit's deduction in proportion to their earnings after the 50% disregard. The members' amounts therefore add up to
max(unit earnings after the disregard - deduction, 0). The variable stays person-level, soma_tafdc_countable_earned_incomeand the six-month full disregard are unchanged. The filing-status split is removed.The issue's examples, now matching the expected values:
ma_tafdcis $9,878 instead of $9,278.ma_tafdcis $9,278 instead of $10,478.The single-earner, single-return case is unchanged.
Interaction with #9477: #9477 (the work-related expense deduction, #9469) changes
ma_tafdc_work_related_expense_deductionandintegration.yaml, which this PR does not touch. Its diff applies cleanly on top of this branch. With both applied,ma/dtahas 178 tests and all pass. The new cases here have no expectations on the financial eligibility test, which is the part #9477 moves.Tests
Six cases are added to
ma_tafdc_partially_disregarded_earned_income.yaml(2026, full-time work, child age 1, $250/month care, so the deduction is $200):ma_tafdc$10,112ma_tafdc$9,512The unequal-earner split is 400/500 and 100/500 of the $200 deduction. The grants are ($901 - countable/12) x 12, plus the $500 clothing allowance.
The 5 new non-control cases fail on main.
ma/dtahas 169 passed and all ofstates/mahas 740 passed.Fixes #9983
🤖 Generated with Claude Code