Skip to content

Subtract Form 2441 line 14 forfeitures, take a supplied line 26, and keep a dependent's own benefits off the filer's Part III - #11222

Draft
MaxGhenis wants to merge 6 commits into
mainfrom
fix-form-2441-carryover-forfeit
Draft

MaxGhenis wants to merge 6 commits into
mainfrom
fix-form-2441-carryover-forfeit

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

What was wrong

PolicyEngine-US took Form 2441 line 15, the employer dependent care benefits the filer received, to be line 12 alone. The model enters dependent_care_employer_benefits on line 12: W-2 box 10, less any box 10 amount above the plan's exclusion, which the employer already reports as box 1 wages. Employers report box 10 benefits "regardless of any employee forfeitures", and Form 2441 subtracts forfeited and carried-forward amounts on line 14. The model had no line 14, so it taxed benefits the filer never received.

For example, in 2025 a head of household with one child has $23,000 of box 1 wages and $5,000 in box 10, so the model counts $28,000 of employment income. The filer incurs $4,000 of qualified expenses (line 16) and forfeits the other $1,000.

main Form 2441 and this PR
Line 15 (benefits received) $5,000 $4,000
Line 25 (excluded) $4,000 $4,000
Line 26 (taxable, Form 1040 line 1e) $1,000 $0
Adjusted gross income $24,000 $23,000
EITC from the 2025 EIC table (one child) $4,220 $4,328
EITC as the model computes it (continuous phase-out) $4,224.13 $4,328.00
Model income tax after refundable credits -$5,924.13 -$6,028.00

The 2025 EIC table, page 52 gives $4,220 for $24,000 to $24,050 and $4,328 for $23,000 to $23,050, a $108 change. The model phases the credit out continuously, so its EITC changes by $103.87. Main mishandled the IRS's own line 14 example ($5,000 in box 10, $50 forfeited, $4,950 of expenses) the same way. When we add $40,000 of box 1 wages (the example gives none), main taxes $50 (AGI $40,050) and the form taxes $0 (AGI $40,000).

Line 12 leaves out box 10 amounts above the plan's exclusion, and this PR keeps the model's treatment of them. If one W-2 reports $6,000 in box 10 under a plan with a $5,000 exclusion, the employer already reports the $1,000 above it as box 1 wages. So dependent_care_employer_benefits is $5,000, and employment income keeps the $1,000 as wages, as on main. A line 14 amount then reduces only line 12. Suppose the filer has $5,000 of expenses, claims $4,000 from the plan and carries the $1,000 balance forward to the plan's 2026 grace period. Line 15 is $4,000 and the exclusion $4,000 (main: $5,000); line 26 stays $0 and AGI $24,000, as on main.

Main also summed every tax unit member's line 12 in Part III, so a dependent's own box 10 changed the filer's return. Form 2441 Part III covers benefits "you (or your spouse if filing jointly)" received (2025 instructions, page 1). For example, in 2025 a head of household with $50,000 of wages and no benefits has one child and $3,000 of qualified expenses. A 20-year-old student dependent earns $6,300, including $300 in box 10. Main gives the filer a $300 exclusion, a $2,700 credit limit and a $540 credit. This PR gives $0, $3,000 and $600, and the dependent's own line 26 is $300.

Some returns need a line 26 the model does not compute: grace-period carryovers used (line 13), a plan maximum below the statutory cap (line 21), and the 2021 and 2022 relief rules. For those, this PR adds an optional supplied line 26 amount.

Law and sources

  • 26 U.S.C. 129(a)(1) excludes "amounts paid or incurred by the employer for dependent care assistance provided to such employee". 129(a)(2)(B) includes any excess over the limit "in gross income in the taxable year in which the dependent care services were provided".
  • 2025 Form 2441, Part III, page 2: line 14, "Enter the amount, if any, you forfeited or carried forward to 2026"; line 15, "Combine lines 12 through 14"; line 26, "Taxable benefits. Subtract line 25 from line 23. If zero or less, enter -0-." Every form from 2017, the model's first year for the exclusion, to 2025 carries line 14. The 2017 to 2020 forms word it as the 2025 form does. The 2021 to 2024 forms read "If you forfeited or carried over to any of the amounts reported on line 12 or 13, enter the amount." Line 15 reads "Combine lines 12 through 14" in every year.
  • 2025 Form 2441 instructions, page 5: line 14 is "the total of the following amounts included on line 12". It covers "Any amount you forfeited" and "Any amount you didn't receive but are permitted by your employer to carry forward and use in the following year". Line 15: "Add the amounts on lines 12 and 13 and subtract from that total the amount on line 14." The line 14 example: "You would enter $5,000 on line 12 and $50, the amount forfeited, on line 14." Page 6, line 26: "Enter this amount on Form 1040, 1040-SR, or 1040-NR, line 1e."
  • 2025 Form 2441 instructions, page 1, purpose of form: "if you (or your spouse if filing jointly) received any dependent care benefits for 2025, you must use Form 2441".
  • 26 U.S.C. 152(b)(1): a dependent "shall be treated as having no dependents" for that year. A dependent's own return therefore has no qualifying child under 21(b)(1)(A), which requires "a dependent of the taxpayer". A dependent's own return can still have another qualifying person, such as a disabled person under 21(b)(1)(B) or a disabled spouse under 21(b)(1)(C).
  • 2025 Instructions for Forms W-2 and W-3, pages 18-19, box 10: "Report all amounts paid or incurred (regardless of any employee forfeitures), including those in excess of the $5,000 exclusion." It continues: "Include any amounts over your plan's exclusion in boxes 1, 3, and 5." Employers therefore report those amounts as wages, and dependent_care_employer_benefits leaves them out of line 12.
  • IRS Notice 2005-42, part III: "Expenses for qualified benefits incurred during the grace period may be paid or reimbursed from benefits or contributions remaining unused at the end of the immediately preceding plan year." The employee forfeits any unused amount beyond those expenses. So grace-period benefits used on line 13 need matching qualified expenses on line 16.
  • 2025 FTB 3506, Part IV: line 15, "Enter the amount, if any, you forfeited or carried forward to 2026"; line 16, "Combine line 13 through line 15." Every FTB 3506 from 2015 to 2025 has the same line 15. The 2021 and 2025 instructions limit line 15 to current benefits: "any amount included on line 13 that you did not receive because you did not incur the expense is considered forfeited." Line 13 covers amounts "an employer paid directly to you (or your spouse/RDP), or to your care provider".

The change

  • dependent_care_employer_benefits_forfeited_or_carried_forward (Form 2441 line 14, FTB 3506 line 15): a person-level input, zero when not supplied, labeled "Current-year dependent care benefits forfeited or carried forward". It holds only the part of this year's line 12 that the employee forfeited or carried forward. On the 2021 to 2024 federal forms line 14 can also hold line 13 amounts; the input leaves those out, as California's line 15 does. The input sits at the person level because employers report box 10 on each employee's W-2 and plan amounts belong to each employee, so a person's line 14 reduces only their own line 12. A negative entry counts as zero.
  • form_2441_line_15, a plain helper rather than a variable, returns each person's line 15: line 12 less line 14, floored at zero for each person. A second helper, form_2441_part_iii_line_15, returns that amount for each member who is not a tax unit dependent (the head and spouse when the model computes roles) and zero for each tax unit dependent. irs_gross_income uses the same rule for a member's wages.
  • dependent_care_assistance_exclusion (line 25) and ca_dependent_care_assistance_exclusion (FTB 3506 line 26) sum form_2441_part_iii_line_15, so a dependent's benefits no longer enter the filer's exclusion or credit limit. taxable_dependent_care_benefits (line 26) takes the return's line 26 from the same members' line 15 and splits it among them by their own line 15. A forfeiture lowers the forfeiting spouse's share. Because the model computes line 26 for the whole return, a forfeiture can also change the other spouse's share: in the joint case below, the head's $1,000 forfeiture moves the spouse's share from $2,500 to $2,222.22.
  • For a tax unit dependent, taxable_dependent_care_benefits returns line 26 of the dependent's own Form 2441. The model holds no qualifying person for a dependent's own return, so their line 16 and exclusion are $0 and their line 26 is their own line 15. It stays off the filer's gross income, which already leaves dependents out. For a dependent whose own return has a qualifying person, such as one under 21(b)(1)(B) or (C), the caller supplies line 26.
  • taxable_dependent_care_benefits_reported: a person-level input, -1 when not supplied. The model takes an amount of zero or more as that person's part of line 26, as entered (including zero), in place of the computed amount. For a dependent it is line 26 of their own return. It changes only taxable_dependent_care_benefits (Form 1040 line 1e) and its readers. The model still computes the exclusion (line 25) and the child and dependent care credit. The credit's rate and its tax-liability limit follow AGI and tax before credits, which include the supplied amount of anyone who is not a tax unit dependent. The Part II earned-income limit leaves that amount out (State readers of employer dependent care benefits use Form 2441 line 12 where their forms use benefits received (line 15: line 12 less line 14), and Part III sums dependents' benefits #11226). On a joint return a spouse without a supplied amount keeps the computed share, so a caller supplies one for each spouse with benefits.
  • Both inputs carry a formula that returns the not-supplied value. PolicyEngine-US sets auto_carry_over_input_variables and gives float dollar inputs a default uprating (tools/default_uprating.py), which Core applies. A plain input entered for 2025 would reach 2026 uprated by AGI per person (tools/per_capita_uprating.py points input variables at the per-capita sibling of the CBO AGI series): 40,000 would become 41,881.67 and -1 would become about -1.047. Core neither carries nor uprates a variable with a formula, so each entry applies only to the year entered. One person's entry never changes another person's result in another year.
  • Because of the formulas, Core does not count either variable as an input variable (is_input_variable() is False). Simulation.to_input_dict() and to_input_dataframe() leave out supplied values unless the caller passes include_computed_variables=True. true_input_variables lists neither variable, and a simulation rebuilt from that export loses them. In local checkouts of policyengine-api and policyengine-app-v2, the household builder lists only input variables, so it would not offer these two; we did not check the live services. Supply them in the situation, through the API or Python, or with set_input; both docstrings state the export behavior. A Core option that stops carry-over and uprating for one input, or that exports recorded inputs of formula-backed variables, would let both stay plain inputs; this PR does not add one.
  • dependent_care_employer_benefits documents that forfeited and carried-forward amounts stay in it, as in box 10, and also go in the line 14 input.
  • docs/gov/irs/historical-validation.md describes the two inputs and Part III's scope, which leaves out tax unit dependents. It says the model taxes the remaining benefits after line 14 when the caller omits qualified expenses, unless the caller supplies line 26. It says California's FTB 3506 line 16 uses the same line 14 input, and lists line 13 and the plan-maximum limit as unmodeled.

Compatibility and negative entries

With neither new input supplied and nonnegative line 12, every result equals main's unless a tax unit dependent has W-2 box 10 benefits (items 1 and 2 under "How the tests check it").

A dependent's own box 10 benefits no longer enter the filer's Part III. The filer's exclusion can fall, which raises the credit limit and credit, and the head's and spouse's line 26 can fall where main split a pooled amount. In the example above, leaving out the dependent's $300 moves the filer's exclusion from $300 to $0 and the credit from $540 to $600. The dependent's own line 26 then counts in their own earned income, their ira_compensation and the earned income their standard deduction uses. It also reaches Medicaid's IRS gross income and filing test for a tax dependent (42 CFR 435.603(d)(2)(i)) and North Dakota renter's refund income (N.D.C.C. 57-02-08.1(5)(c)). It does not yet reach dependent_gross_income, dependent_adjusted_gross_income or dependent_ira_compensation, which their own IRA deduction uses (#11226).

Negative entries now behave as follows:

  • A negative line 12 counts as zero in that person's line 15. For $5,000 and -$1,000 on a joint return with $3,000 of expenses, main splits a $1,000 line 26 as $1,250 and -$250; this PR gives $2,000 and $0. A YAML case pins it.
  • A negative line 14 counts as zero. A YAML case pins it.
  • The model treats a negative supplied line 26, such as the default -1, as not supplied. A YAML case pins it with -$500.

How the tests check it

  1. Without the new inputs or a dependent's box 10, nothing changes. We ran a seeded population of 150 tax units per year, in 2017 and 2020 to 2026, with neither new input. One run used main (merge base 6151323, every package file checked by blob hash), and the other used this branch at 954b294's content, an earlier head of this PR. It covered all five filing statuses, 12 states (AL, CA, HI, ID, KY, MD, MI, ND, NY, OK, TX, VA), random nonnegative line 12 benefits for heads and spouses, wages, line 16, childcare costs and military retirement pay. All 22 outputs matched in every year: 176 arrays, 160 of them nonzero, with a maximum difference of $0. We compared dependent_care_assistance_exclusion, ca_dependent_care_assistance_exclusion, ca_dependent_care_assistance_addition, ca_cdcc_relevant_expenses, cdcc_limit, cdcc_relevant_expenses, cdcc, AGI, federal and state income tax, ny_cdcc_max, va_child_dependent_care_deduction_cdcc_limit, id_household_and_dependent_care_expense_deduction, hi_dependent_care_benefits, ky_cdcc_potential, al_federal_income_tax_deduction, nd_renters_refund_federally_excluded_income, taxable_dependent_care_benefits, eitc_earned_income, ira_compensation, dependent_gross_income and household_net_income. Sixteen arrays were zero on main and check nothing: dependent_gross_income in all eight years, ca_dependent_care_assistance_addition in 2017, 2020 and 2022 to 2025, ky_cdcc_potential in 2017 and nd_renters_refund_federally_excluded_income in 2024. Main has since moved 60 commits (to c44636b); none edits a file this PR changes or a test of one. Every member in this population and the one in item 2 is the head, a joint spouse or a member with is_tax_unit_dependent set. So c575d41's Part III rule picks the same members as 954b294's head-or-spouse rule, and both runs' results hold at c575d41.

  2. A dependent's box 10 changes only the units that have one. We reran the same population after making about 45% of tax unit dependents workers aged 16 to 23. They had $500 to $20,000 of wages, and about half of them had $1 to $3,000 in box 10: 23 to 50 such dependents a year. We set neither new input. Of 224 arrays, the 22 outputs above plus six more in each of the 8 years, 129 differ from main. The six were irs_gross_income, standard_deduction_worksheet_earned_income_person, medicaid_person_is_required_to_file, nd_renters_refund_income, aca_ptc and chip. Every difference lies in a tax unit or household with a box 10 dependent. No unit whose working dependent has no box 10 differs. Of 245 unit-years with a box 10 dependent, 53 have a lower filer exclusion and 15 a changed filer line 26. In the other 177 nothing moves by more than half a cent, and no filer exclusion rises. Each such dependent's own line 26 equals their box 10. A third run, on main, entered the same box 10 amounts as ordinary wages. Against it, this branch differs in the dependents' own taxable benefits, dependent_gross_income and household_net_income (FICA wages leave out box 10). It also differs in Hawaii's and Kentucky's line 12 readers (State readers of employer dependent care benefits use Form 2441 line 12 where their forms use benefits received (line 15: line 12 less line 14), and Part III sums dependents' benefits #11226) and in state income tax in 11 unit-years in Alabama, Hawaii and Kentucky.

  3. Every part of the change has a case that fails without it. At c575d41 we reverted each part in the source, alone or in the combinations the table names. For each reversion we reran each YAML file that can reach the reverted code, one file per process, then restored the source. Every reversion fails at least one case. Each count below sums the failing cases in the federal exclusion, California and taxable benefits files, in that order; a dash marks a file that cannot reach the reverted code.

    Reversion Cases that fail
    All three formulas (federal exclusion, California exclusion, taxable benefits) back to main (line 12 alone over every member, no floor, supplied line 26 ignored) 22 (5 + 2 + 15)
    Line 14 ignored in all three formulas 12 (3 + 2 + 7)
    Line 14 ignored only by the federal exclusion (with the head-or-spouse rule in place of the Part III rule) 4 (1 + 1 + 2)
    Line 14 ignored only by taxable benefits 12 (3 + 2 + 7)
    Line 14 ignored only by California's exclusion (with the head-or-spouse rule in place of the Part III rule) 1 (– + 1 + –)
    No per-person floor on line 15 2 (0 + 0 + 2)
    A negative line 14 not clamped at zero 1 (1 + 0 + 0)
    Supplied line 26 ignored 8 (1 + 0 + 7)
    A supplied zero treated as not supplied 6 (1 + 0 + 5)
    One member's supplied line 26 replacing every member's amount 2 (0 + 0 + 2)
    Only exactly -1 treated as not supplied 1 (0 + 0 + 1)
    A supplied line 26 capped at the person's computed line 15 1 (0 + 0 + 1)
    Line 14 input without its formula, carried and uprated 1 (0 + 0 + 1)
    Line 14 input without its formula, carried but not uprated 1 (0 + 0 + 1)
    Supplied line 26 without its formula, carried and uprated 1 (0 + 0 + 1)
    Supplied line 26 without its formula, carried but not uprated 1 (0 + 0 + 1)
    Federal exclusion sums every member's line 15 3 (1 + 1 + 1)
    California exclusion sums every member's line 15 1 (– + 1 + –)
    Line 26 pooled and split over every member 3 (0 + 0 + 3)
    The three rows above together (both exclusions and line 26 over every member) 6 (1 + 1 + 4)
    A dependent's computed line 26 set to zero 5 (1 + 1 + 3)
    A dependent's line 26 ignoring their own line 14 3 (0 + 1 + 2)
    Part III limited to the head, dropping the spouse 8 (0 + 0 + 8)
    Gross income counting tax unit dependents (a guard on the filer's return) 6 (1 + 1 + 4)
    Part III helper back to the head-or-spouse rule 1 (0 + 0 + 1)
    Line 26 filer rule back to the head-or-spouse rule 1 (0 + 0 + 1)
    Both Part III rules back to the head-or-spouse rule, as at 954b294 1 (0 + 0 + 1)
  4. Most new cases fail under line-12-only behavior. 22 of the 29 new YAML cases fail with main's formulas, and none of the 66 cases from main do. Six of the seven new cases that pass pin safeguards that main meets because it ignores the new inputs. They cover a negative line 14, a line 14 entered for a spouse with no benefits, a 2025 line 14 that must not reach 2026 and an explicit zero line 14 for 2026. They also cover a 2025 supplied line 26 that must not reach 2026 and a negative supplied line 26. Reversions in the table catch five of the six. Three concern line 14: the unclamped negative entry, the missing per-person floor (the spouse case) and the input without its formula. Two concern the supplied line 26: only exactly -1 treated as not supplied, and the input without its formula. The explicit 2026 zero for line 14 pins nothing: its values equal those with no 2026 entry, so it cannot show that Core recorded the zero. The case with a 2025 entry and no 2026 entry catches carry-over. For the supplied line 26, the explicit 2026 zero replaces a computed $1,000, so that case does pin the entry. The seventh case keeps a member without is_tax_unit_dependent on the filer's return beside one with it set, as main does. The table's last three reversions, of the Part III rule, catch it.

This PR adds no Python test. YAML covers each behavior, including income tax wages (irs_employment_income) and FICA wages. On one local machine (macOS, Core 3.36.0, one file per process), the test phases of the federal exclusion, California and taxable benefits files took 6.5, 2.4 and 3.2 seconds on main (50, 10 and 6 cases). At c575d41 they took 12.2, 3.6 and 6.5 seconds (56, 12 and 27 cases). Peak memory reached 2.7 to 3.2 GB on main and, at the earlier head 954b294's content, 2.7 to 3.4 GB. The figures vary by run and with load on the machine. CI runs the three files in the test-yaml-no-structural-other-irs and test-yaml-no-structural-states groups.

New YAML cases

  • dependent_care_assistance_exclusion.yaml (+6, 56 cases): the IRS line 14 example ($4,950 excluded, $0 taxable), and a negative line 14 entry, which counts as zero. The third carries $1,000 of $5,000 forward to the plan's grace period with $5,000 of expenses, so line 15 limits the exclusion to $4,000 (main: $5,000). The fourth is the dependent example above: the filer's exclusion $0, credit limit $3,000 and credit $600, and the dependent's own line 26 $300, which stays off the filer's AGI. Two more omit qualified expenses and forfeit $500 of $2,000: line 26 is the $1,500 left after line 14 (AGI $39,500), and the model uses a supplied line 26 of $0 as entered (AGI $38,000).
  • taxable_dependent_care_benefits.yaml (+21, 27 cases):
    • the $1,000 forfeiture above, which also pins income tax wages (irs_employment_income) and FICA wages at box 1;
    • box 10 above the plan's exclusion with $1,000 carried forward to the plan's grace period ($4,000 excluded, AGI $24,000);
    • a joint return where one spouse forfeits $1,000 of $5,000, so line 26 is $4,000 split $1,777.78 and $2,222.22. A forfeiture entered for a spouse with no benefits cannot reduce the other spouse's line 15 ($2,000 taxable, all the other spouse's). Also a -$1,000 line 12 beside $5,000;
    • a 19-year-old full-time student dependent with $300 in box 10 beside a filer with $5,000. With $100 of the dependent's $300 forfeited, the filer's line 26 is $1,000, the dependent's own $200, and AGI $24,000. Pooling every member's line 15 would give $1,153.85 and $46.15. Without the forfeiture, the dependent's line 26 is $300 and the filer's stays $1,000 (main: $1,226.42 and $73.58);
    • a joint return with the same dependent: the spouses' $4,000 line 26 splits $1,777.78 and $2,222.22, the dependent keeps their own $200, and AGI is $114,000;
    • a supplied line 26 of $500 for a filer who also used $1,500 of grace-period carryover (line 26 $500, AGI $40,500). The exclusion stays at the computed $4,000 where the form's is $5,000, so cdcc_limit is $2,000 where the form's line 29 is $1,000. The file also pins a supplied $0, which the model uses as entered; one spouse's supplied $0, which leaves the other spouse's computed $2,222.22; and a dependent's supplied $0, which replaces their own computed $300;
    • a supplied $1,000, which the model uses as entered, where this year's line 12 is $0. The filer used $3,000 of grace-period carryover (line 13) that paid $3,000 of care incurred in the grace period, and has $2,000 of box 1 wages. Form 2441 gives line 15 $3,000, line 25 $2,000 and line 26 $1,000; the exclusion stays computed at $0, and AGI is $3,000. The model treats a supplied -$500 as not supplied;
    • six two-year cases for 2026. A 2025-only line 14 and a 2025-only supplied line 26 do not reach 2026. Each input has an explicit 2026 zero after a 2025 entry (the line 14 zero pins nothing, as item 4 of "How the tests check it" explains). Each input also has one spouse's 2025 entry beside the other spouse's 2026 entry;
    • a 17-year-old with $800 of wages, $300 of them in box 10, beside a child flagged as a dependent. The case supplies is_tax_unit_dependent for the child alone, so Core stores False for the teen, and gross income counts the teen's wages on the filer's return. Part III counts the teen too: the exclusion is $300, every line 26 is $0 and AGI is $44,500, as on main.
  • ca_dependent_care_assistance_exclusion.yaml (+2, 12 cases): the filer carries $2,000 of $5,000 forward to the plan's grace period and claims $3,000 of $4,000 of expenses from the plan. Line 15 (FTB 3506 line 16) of $3,000 sets both exclusions (main: $4,000), with no California addition. The second is the dependent example in California with $100 of the dependent's $300 forfeited: both exclusions $0, the federal credit limit $3,000, and the dependent's own line 26 $200.

Readers this reaches

With line 14 present, the federal exclusion reaches cdcc_limit and cdcc_relevant_expenses, ca_dependent_care_assistance_addition, ca_cdcc_relevant_expenses, id_household_and_dependent_care_expense_deduction, ny_cdcc_max (Form IT-216, before 2026), va_child_dependent_care_deduction_cdcc_limit and Alabama's 2021 recompute under the 2020 Code. Take a 2021 Alabama head of household with two children, $58,000 of box 1 wages, $5,000 in box 10, $2,000 on line 14 and $9,000 of expenses. The federal 2021 exclusion falls from $5,000 to $3,000, and al_federal_income_tax_deduction, which comes from the 2020-Code recompute, from $220 to $0. State credits computed from cdcc follow as well. Take a head of household with $55,000 of box 1 wages, $5,000 in box 10, $2,000 on line 14, two children and $8,000 of expenses. ky_cdcc_potential rises from $40 to $120 in 2022 and 2025. In 2025 New York's ny_cdcc_max rises from $1,000 to $3,000 and ny_cdcc from $186.75 to $560.25. The model computed these values. Leaving a dependent's box 10 out of the filer's exclusion changes the same readers. In item 2's population run, that change moved id_household_and_dependent_care_expense_deduction, ny_cdcc_max, va_child_dependent_care_deduction_cdcc_limit, al_federal_income_tax_deduction, ky_cdcc_potential and both California exclusion outputs in at least one year.

Taxable benefits reach irs_gross_income (and so every state that starts from federal AGI), eitc_earned_income, ira_compensation, the dependent filing-requirement earned income and nd_renters_refund_federally_excluded_income. They also reach the standard deduction worksheet for a filer whom another taxpayer can claim as a dependent (the federal, Hawaii, Oregon and Wisconsin standard deductions). North Dakota treats as excluded the part of wages that federal gross income leaves out. So a forfeiture lowers nd_renters_refund_income by the forfeited amount: on the facts under "What was wrong", from $24,000 to $23,000. A dependent's own line 26 reaches their own ira_compensation and earned income, Medicaid's filing test and North Dakota renter's refund income, but not the filer's AGI. dependent_gross_income does not read taxable benefits (its formula maps them to no source).

Five state readers take the benefits amount from line 12 directly, so an amount on line 14 still counts in them. Kentucky's 2021 recompute (ky_cdcc_potential), Hawaii's hi_dependent_care_benefits and New York's ny_cdcc_qualifying_expenses (the credit from 2026) sum every member's line 12. Michigan's income list sums the head's and spouse's. Oklahoma's counts every household member's, as its household-income rule intends. On the Kentucky and New York facts above their results do not move (ky_cdcc_potential stays $40 in 2021 and ny_cdcc $1,350 in 2026). They can move through AGI or the EITC when line 14 changes line 26. Take a head of household with two children, $23,000 of box 1 wages, $5,000 in box 10 and $1,000 on line 14. dependent_care_assistance_qualified_expenses is $4,000 and tax_unit_childcare_expenses $8,000. Line 14 lowers AGI from $24,000 to $23,000. ky_cdcc_potential (2021) rises from $60 to $62, ny_cdcc (2026) from $1,582.50 to $1,590.00 and ok_gross_income (2025) from $35,261.93 to $35,409.36, while mi_household_resources stays $28,000. The model computed these values too. #11226 gives their sources and probes. No dataset carries the new inputs. Microsimulation results change only where a dataset puts box 10 benefits on a tax unit dependent; we did not check the dataset files for that.

#10715 round 3, finding 3

That finding said Idaho's employment test under Idaho Code 63-3022A(1)(b)(iii) counted forfeited benefits as taxable. It asked for two things: use an explicitly supplied Form 2441 line 26 when available, including zero; and, for the computed amount, account for carryovers and forfeitures and apply Part III's qualified-expense limit. This PR does the first through taxable_dependent_care_benefits_reported and the forfeiture part of the second through line 14. The qualified-expense limit (line 16) already applies on main. This PR closes the finding in part: carryovers used (line 13) reach line 26 only through the supplied amount. A computed line 13 would need the annual amounts used, the relief-year treatment and the line 21 limit.

On the finding's corrected facts ($23,000 of box 1 wages, $5,000 in box 10, $1,000 forfeited, $4,000 of qualified expenses), main's line 26 is $1,000. So income from employment is $24,000, over the $23,625 head of household threshold. With this change line 26 is $0 and income from employment is $23,000. These Idaho figures follow from the federal line 26 values above; we did not run them, because main does not have the Idaho employment test. #10715 pins the case once this merges.

Not in this PR

  • Line 13, prior-year benefits used this year (in the grace period, and in 2021 and 2022 under the relief rules), stays unmodeled, as on main. For such returns supply line 26. The exclusion and the credit then stay at their computed values, so the credit limit can exceed the form's (the $500 case above, $2,000 against the form's $1,000).
  • The 2021 and 2022 relief rules: the line 21 addition, carryovers that pay for a child under 14, and the extended claims period. On the 2021 to 2024 forms line 14 also takes line 13 amounts that the filer forfeited or carried over, which the model leaves out.
  • A plan maximum below the statutory cap (line 21), benefits from the filer's own business (lines 22 and 24) and the combat pay election (line 18).
  • A qualifying person on a tax unit dependent's own return: the model holds none, so the caller supplies such a dependent's line 26.
  • A spouse on a non-joint tax unit, which arises only from an explicit filing_status or role input, counts in Part III as on main.
  • State readers of employer dependent care benefits use Form 2441 line 12 where their forms use benefits received (line 15: line 12 less line 14), and Part III sums dependents' benefits #11226 holds the rest. Five state readers still read line 12 rather than line 15: Kentucky's 2021 recompute, Hawaii and New York from 2026 sum every member's line 12, Michigan sums the head's and spouse's, and Oklahoma counts every household member's. The model's Hawaii Schedule X line 20 leaves the excluded benefits in. North Dakota's renter's refund income does not count a supplied line 26 above line 12. The model's Part II earned income leaves out line 1e. State readers of employer dependent care benefits use Form 2441 line 12 where their forms use benefits received (line 15: line 12 less line 14), and Part III sums dependents' benefits #11226 also holds dependent_gross_income, dependent_adjusted_gross_income, dependent_taxable_ss_magi and dependent_ira_compensation, which leave out a dependent's taxable benefits, and aca_magi, which leaves out dependents who must file. All of these behave as on main, except that main has no supplied line 26.

Test plan

  • For policy changes: YAML cases whose expected values come from Form 2441 Part III, its instructions and FTB 3506 Part IV, with the arithmetic in comments.
  • Formatting: ruff format --check and ruff check (ruff 0.15.5) pass on the six changed or new Python files.
  • Changelog fragments: changelog.d/fix-form-2441-carryover-forfeit.added.md and .fixed.md.

Local runs at c575d41 (Core 3.36.0, the locked version), one file per process:

  • dependent_care_assistance_exclusion.yaml: 56 passed. taxable_dependent_care_benefits.yaml: 27 passed. ca_dependent_care_assistance_exclusion.yaml: 12 passed.
  • policyengine_us/tests/core/test_dependent_care_assistance_exclusion_invariants.py: 6 passed. policyengine_us/tests/core/test_input_variable_definitions.py: 5 passed. policyengine_us/tests/code_health/variable_names.py: 1 passed.
  • policyengine_us/tests/code_health/test_known_dead_reference_urls.py 40, test_no_concatenated_reference_urls.py 48, test_no_builtin_sum_over_entity_calls.py 1 and test_no_in_place_writes_to_cached_arrays.py 4 passed.
  • al_federal_income_tax_deduction.yaml (unchanged from main): 16 passed.
  • git diff --check: clean.

We did not run the folder-level suites at c575d41; CI runs them.

axiom: TheAxiomFoundation/rulespec-us#2334 queued

🤖 Generated with Claude Code

Form 2441 line 15 is line 12 plus grace-period carryovers used this year
(line 13) less amounts forfeited or carried forward (line 14). The model
used line 12 alone, so it taxed forfeited benefits and ignored
carryovers. Two per-person inputs, both zero by default, carry lines 13
and 14; the federal exclusion, taxable_dependent_care_benefits and
California's exclusion read the resulting line 15. A parameter keeps
2021 and 2022 as main computes them, since those years' relief rules are
not modeled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drop the line 13 carryover input, the prior_year_carryover_omitted
parameter and California's always-count-line-13 branch. Form 2441 line
15 is now each person's line 12 less their line 14, floored at zero,
read by the federal exclusion, taxable dependent care benefits and
California's exclusion. Add taxable_dependent_care_benefits_reported,
an optional per-person line 26 amount that replaces the computed share
when zero or more. Give both inputs a formula returning the
not-supplied value so an entry applies only to the year entered.
Replace the seeded Python invariant test with YAML cases and revert the
Alabama YAML to main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 2 commits November 29, 2026 09:48
Form 2441 Part III covers the benefits of the taxpayer and a spouse
filing jointly. Both exclusions and the taxable split now read only the
head's and spouse's line 15, and a dependent's own line 15 becomes their
taxable benefits. Also corrects the grace-period fixture, the docs
sentence on omitted qualified expenses and the line 14 label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Part III and line 26 now select members with ~is_tax_unit_dependent, the
mask irs_gross_income and tax_unit_non_dep_sum use, instead of
is_tax_unit_head_or_spouse. With roles computed the two agree. When
is_tax_unit_dependent is supplied for some members only, Core stores
False for the rest, and the old mask taxed such a member's whole line 15
while gross income still counted their wages on the filer's return.

Also: cases for line 14 with qualified expenses omitted, with and
without a supplied line 26; is_full_time_student on the three
19-year-old dependents; the docs name the credit's tax-liability limit
and leave the list of qualifying persons for a dependent's return open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis MaxGhenis changed the title Subtract Form 2441 line 14 forfeitures from employer dependent care benefits, and take a supplied line 26 Subtract Form 2441 line 14 forfeitures, take a supplied line 26, and keep a dependent's own benefits off the filer's Part III Nov 29, 2026
@MaxGhenis

Copy link
Copy Markdown
Contributor Author

Agent-written for Max, by Claude Code for Max Ghenis.

In round 3 of independent review, a Codex cloud task reviewed c575d41 (GPT-6.2 Sol at Extra High effort; chat https://chatgpt.com/local/6b0c9659-7d1c-83ea-bf42-4920760e60c8) and requested changes. It found no P0 and no runtime regression. It closed three P1s from round 2: a dependent's forfeiture no longer changes the filer's return, the above-line-12 case now uses consistent facts, and historical-validation.md now describes omitted expenses as the code handles them. It kept open a fourth P1, on the description's microsimulation and compatibility claims, and raised three more P1s, all in the description:

  • The readers under "Not in this PR", ACA and Medicaid MAGI among them, keep their formulas but can return new values, because they read the revised federal AGI.
  • Michigan sums line 12 over every member not flagged as a tax unit dependent, not only the head and spouse.
  • A lower exclusion can raise the dollar limit, but the credit can still stop at the tax-liability cap.

It also raised two P2s. The docs and a docstring name the head and spouse, where the code counts every member not flagged as a dependent. Two YAML comments credit the §152(b)(1) rule alone for the missing qualifying person.

Its Linux container ran every test we asked for: federal exclusion 56 passed, taxable benefits 27, California 12, Alabama 16, invariant tests 6, input definitions 5 and seven household probes, with ruff clean on six files. CI runs the full suites and microsimulation. The next head addresses these findings, and round 4 reviews it.

MaxGhenis and others added 2 commits November 29, 2026 17:21
…ing person exactly

Round-3 review P2s. The docs and the taxable benefits docstring now say every
member whose is_tax_unit_dependent is False counts: the head and spouse with
roles computed, plus a member left unflagged after a partial input and a spouse
on a unit that an explicit filing_status or tax_unit_married input makes
non-joint. The helper's docstring adds tax_unit_married, which filing_status
reads. Two YAML comments now say the households supply no qualifying person for
the dependent's return, and limit IRC 152(b)(1) to the ordinary qualifying-child
rule.

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

The code comment said Part III is for the head and spouse. It now says Part III
is for benefits the filer, or a spouse filing jointly, received, and that the
helper counts every member who is not a tax unit dependent.

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

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.

1 participant