diff --git a/changelog.d/fix-form-2441-carryover-forfeit.added.md b/changelog.d/fix-form-2441-carryover-forfeit.added.md new file mode 100644 index 00000000000..94d7c7f38e8 --- /dev/null +++ b/changelog.d/fix-form-2441-carryover-forfeit.added.md @@ -0,0 +1 @@ +Add the person-level amounts a caller can supply: `dependent_care_employer_benefits_forfeited_or_carried_forward` (Form 2441 line 14) and `taxable_dependent_care_benefits_reported` (a supplied Form 2441 line 26 amount, used in place of the computed share of taxable dependent care benefits). Each applies only to the year entered. diff --git a/changelog.d/fix-form-2441-carryover-forfeit.fixed.md b/changelog.d/fix-form-2441-carryover-forfeit.fixed.md new file mode 100644 index 00000000000..780aa413b90 --- /dev/null +++ b/changelog.d/fix-form-2441-carryover-forfeit.fixed.md @@ -0,0 +1 @@ +Compute the federal and California dependent care assistance exclusions and taxable dependent care benefits from Form 2441 line 15 (FTB 3506 line 16), without line 13, which is not modeled: the line 12 benefits in `dependent_care_employer_benefits` less amounts forfeited or carried forward, entered in `dependent_care_employer_benefits_forfeited_or_carried_forward`, so those amounts are no longer taxed. diff --git a/docs/gov/irs/historical-validation.md b/docs/gov/irs/historical-validation.md index acb83d6a5f6..6f9b06e12bc 100644 --- a/docs/gov/irs/historical-validation.md +++ b/docs/gov/irs/historical-validation.md @@ -79,15 +79,17 @@ Every path below has the prefix `gov.irs.`. “Explicit 2017” means the parame ## Additional rule tests and limits -Focused tests also cover the [personal-exemption phaseout](../../../policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/exemptions/exemptions.yaml): a partial step triggers the full 2% reduction, as the [2017 worksheet, p. 41][instructions-1040] requires. [Dependent-care tests](../../../policyengine_us/tests/policy/baseline/gov/irs/credits/cdcc/dependent_care_assistance_exclusion.yaml) cover the actual qualified-expense ceiling and prevent reuse of excluded employer benefits for the child and dependent care credit, following [Form 2441, Part III][dcap]. [Traditional IRA tests](../../../policyengine_us/tests/policy/baseline/household/expense/retirement/traditional_ira_contributions.yaml) cover the age-70.5 restriction through 2019 and its removal from 2020, following [Publication 590-A][ira-contributions] and [P.L. 116-94, Division O, §107][secure]. +Focused tests also cover the [personal-exemption phaseout](../../../policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/exemptions/exemptions.yaml): a partial step triggers the full 2% reduction, as the [2017 worksheet, p. 41][instructions-1040] requires. [Dependent-care tests](../../../policyengine_us/tests/policy/baseline/gov/irs/credits/cdcc/dependent_care_assistance_exclusion.yaml) cover the actual qualified-expense ceiling and benefits forfeited or carried forward (Form 2441 line 14), and prevent reuse of excluded employer benefits for the child and dependent care credit, following [Form 2441, Part III][dcap]. [Traditional IRA tests](../../../policyengine_us/tests/policy/baseline/household/expense/retirement/traditional_ira_contributions.yaml) cover the age-70.5 restriction through 2019 and its removal from 2020, following [Publication 590-A][ira-contributions] and [P.L. 116-94, Division O, §107][secure]. Employer dependent care assistance requires an independently supplied annual tax-unit input, `dependent_care_assistance_qualified_expenses`. It represents employment-related expenses for qualifying care incurred during the tax year, regardless of when paid, before employer benefits and statutory dollar or earnings limits. Include eligible employer-paid care and care for a qualifying disabled adult or spouse; exclude costs for ineligible people, purposes or providers and reimbursements disallowed under the applicable year's rules. The [2017 instructions, p. 1](https://www.irs.gov/pub/irs-prior/i2441--2017.pdf#page=1) retain state reimbursements included in income; the shorter reimbursement wording in the [2025 instructions, p. 2](https://www.irs.gov/pub/irs-prior/i2441--2025.pdf#page=2) does not by itself establish a legal change. The input must reflect the applicable treatment. -When callers omit the expense input, the model uses zero and treats all positive employer benefits as taxable. That reporting assumption does not establish that the household incurred no qualified costs. An informed household or population calculation requires an independently established qualified amount; W-2 box 10, gross childcare bills and modeled public subsidies do not supply it. Both the [2017](https://www.irs.gov/pub/irs-prior/i2441--2017.pdf#page=5) and [2025 instructions](https://www.irs.gov/pub/irs-prior/i2441--2025.pdf#page=5) illustrate $2,000 in benefits but only $900 in qualified expenses. This correction adds no dataset imputation, reporting-status input or missing-information validation. Carryovers, forfeitures and self-employment plan deductions remain outside this employer-benefit calculation. +When callers omit the expense input, the model uses zero and treats all positive employer benefits as taxable. That reporting assumption does not establish that the household incurred no qualified costs. An informed household or population calculation requires an independently established qualified amount; W-2 box 10, gross childcare bills and modeled public subsidies do not supply it. Both the [2017](https://www.irs.gov/pub/irs-prior/i2441--2017.pdf#page=5) and [2025 instructions](https://www.irs.gov/pub/irs-prior/i2441--2025.pdf#page=5) illustrate $2,000 in benefits but only $900 in qualified expenses. This correction adds no dataset imputation, reporting-status input or missing-information validation. Grace-period carryovers (Form 2441 line 13) and self-employment plan deductions (lines 22 and 24) remain outside this employer-benefit calculation. + +An optional person-level input brings line 14 into [Form 2441 line 15](https://www.irs.gov/pub/irs-prior/f2441--2025.pdf#page=2), which the [2025 instructions, p. 5](https://www.irs.gov/pub/irs-prior/i2441--2025.pdf#page=5) define as lines 12 and 13 less line 14. `dependent_care_employer_benefits` is line 12: box 10, not counting any amount above the plan's exclusion, which the employer includes in boxes 1, 3 and 5 ([W-2 instructions, p. 19](https://www.irs.gov/pub/irs-prior/iw2w3--2025.pdf#page=19)). Box 10 reports benefits "regardless of any employee forfeitures" ([W-2 instructions, p. 18](https://www.irs.gov/pub/irs-prior/iw2w3--2025.pdf#page=18)), so `dependent_care_employer_benefits` keeps the forfeited part, and `dependent_care_employer_benefits_forfeited_or_carried_forward` is line 14: the part of line 12 forfeited or carried forward to the next year. Line 14 appears on every Form 2441 from 2017 to 2025; on the 2021 to 2024 forms it also takes amounts from line 13 that were forfeited or carried over, which the model leaves out. The input defaults to zero and applies only to the year entered, so omitting it leaves line 15 equal to a nonnegative line 12. Each person's line 14 reduces only their own line 12, and each person's part of line 15 is floored at zero, so a negative line 12 entry counts as zero. The exclusion is limited by line 15, taxable benefits are line 15 less the exclusion (line 26), and that amount is split among members by their own line 15 amounts. Line 13, prior-year benefits used this year (in the grace period, and in 2021 and 2022 under the relief rules), is not modeled, nor are a plan maximum below the statutory cap on line 21 and the 2021 and 2022 relief rules. For such returns, `taxable_dependent_care_benefits_reported` takes each person's part of line 26 as supplied, including zero, in place of the computed share; the exclusion and the child and dependent care credit stay computed, though the credit's rate follows adjusted gross income, which includes the supplied amount. Supply this input separately from `cdcc_qualified_care_expenses`, which remains the computed expense helper for the later credit; overriding that helper does not establish the employer-assistance expense amount. The model retains its qualifying-person checks and subtracts excluded benefits once from creditable costs. The model keeps the existing employer-benefit payroll input convention. Keeping the assistance expense input independent also avoids a cycle through modeled childcare subsidies and adjusted gross income. -California applies its own earnings and dollar limits directly to the independently supplied qualified amount, as [FTB 3506 Part IV](https://www.ftb.ca.gov/forms/2017/17_3506.pdf#page=2) requires. Higher California earnings, including its different HSA treatment, cannot override the qualified-expense ceiling. The model adds the positive federal-minus-California exclusion difference back to California adjusted gross income. When California's exclusion exceeds the federal exclusion, the current addback returns zero. The model does not calculate a California subtraction for that difference. This correction leaves that adjustment route unverified and does not establish complete historical validation of California taxes. +California applies its own earnings and dollar limits directly to the independently supplied qualified amount, as [FTB 3506 Part IV](https://www.ftb.ca.gov/forms/2017/17_3506.pdf#page=2) requires. California's benefits amount, [FTB 3506 line 16](https://www.ftb.ca.gov/forms/2025/2025-3506.pdf#page=2), combines the same lines as Form 2441 line 15. Its line 15 enters the amount "forfeited or carried forward" on every form from 2015 to 2025, so California's exclusion reads the same line 14 input. Its line 14, grace-period carryovers ("the amount from federal Form 2441, line 13" in the [2021 instructions](https://www.ftb.ca.gov/forms/2021/2021-3506-instructions.html)), is not modeled, as on the federal form. Higher California earnings, including its different HSA treatment, cannot override the qualified-expense ceiling. The model adds the positive federal-minus-California exclusion difference back to California adjusted gross income. When California's exclusion exceeds the federal exclusion, the current addback returns zero. The model does not calculate a California subtraction for that difference. This correction leaves that adjustment route unverified and does not establish complete historical validation of California taxes. [Saver's Credit examples](../../../policyengine_us/tests/policy/baseline/gov/irs/credits/retirement_saving/savers_credit_person.yaml) check the published inclusive AGI ceilings and fractional income above them. [Generated populations](../../../policyengine_us/tests/core/test_federal_2017_tax_history_properties.py) repeat these checks for all five filing statuses in every year from 2017 through 2026. diff --git a/policyengine_us/tests/policy/baseline/gov/irs/credits/cdcc/dependent_care_assistance_exclusion.yaml b/policyengine_us/tests/policy/baseline/gov/irs/credits/cdcc/dependent_care_assistance_exclusion.yaml index 33ac635994e..6a8998d5f7d 100644 --- a/policyengine_us/tests/policy/baseline/gov/irs/credits/cdcc/dependent_care_assistance_exclusion.yaml +++ b/policyengine_us/tests/policy/baseline/gov/irs/credits/cdcc/dependent_care_assistance_exclusion.yaml @@ -1,9 +1,13 @@ # IRC section 129 dependent care assistance exclusion, as reconciled on # Form 2441 Part III. Dollar/earnings-limit unit cases explicitly supply # sufficient qualified expenses; the full-household cases also test that limit. -# The exclusion is the lesser of qualified expenses, employer benefits, -# the section 129(a)(2)(A) dollar cap (by filing status), and the section -# 129(b) earned-income limit. +# The exclusion is the lesser of qualified expenses, employer benefits +# (Form 2441 line 15: line 12 less amounts forfeited or carried forward on +# line 14), the section 129(a)(2)(A) dollar cap (by filing status), and the +# section 129(b) earned-income limit. Line 12 is +# dependent_care_employer_benefits: W-2 box 10, not counting any amount +# above the plan's exclusion, which box 1 already includes as wages. Line 13 +# (grace-period carryovers used) is not modeled. - name: No employer dependent care benefits gives no exclusion period: 2024 @@ -940,3 +944,89 @@ # The omitted input defaults0; this does not establish actual costs0. dependent_care_assistance_exclusion: 0 taxable_dependent_care_benefits: [2_000, 0] + +- name: IRS 2025 line 14 example, $5,000 set aside and $50 forfeited. + period: 2025 + input: + people: + head: + age: 35 + employment_income: 45_000 + dependent_care_employer_benefits: 5_000 + dependent_care_employer_benefits_forfeited_or_carried_forward: 50 + child: + age: 5 + tax_units: + tax_unit: + members: [head, child] + filing_status: HEAD_OF_HOUSEHOLD + dependent_care_assistance_qualified_expenses: 4_950 + tax_unit_childcare_expenses: 4_950 + households: + household: + members: [head, child] + state_code: TX + output: + # 2025 Form 2441 instructions, line 14: $5,000 on line 12 and $50 on + # line 14, after $4,950 of qualified expenses was incurred and + # reimbursed. Line 15 is $4,950, all excluded; line 26 is $0. + dependent_care_assistance_exclusion: 4_950 + taxable_dependent_care_benefits: [0, 0] + +- name: A negative line 14 entry counts as zero. + period: 2025 + input: + people: + head: + age: 35 + employment_income: 50_000 + dependent_care_employer_benefits: 3_000 + dependent_care_employer_benefits_forfeited_or_carried_forward: -2_000 + child: + age: 5 + tax_units: + tax_unit: + members: [head, child] + filing_status: HEAD_OF_HOUSEHOLD + dependent_care_assistance_qualified_expenses: 9_000 + tax_unit_childcare_expenses: 9_000 + households: + household: + members: [head, child] + state_code: TX + output: + # Line 15 is the $3,000 on line 12; the negative entry cannot raise it. + dependent_care_assistance_exclusion: 3_000 + taxable_dependent_care_benefits: [0, 0] + +- name: Benefits carried forward on line 14 limit the exclusion below qualified expenses. + period: 2025 + input: + people: + head: + age: 35 + employment_income: 45_000 + dependent_care_employer_benefits: 5_000 + # The filer incurred $5,000 of 2025 expenses but claimed only $4,000 + # from the plan; the $1,000 balance carries forward to the plan's + # 2026 grace period. Line 14 enters it: "Any amount you didn't + # receive but are permitted by your employer to carry forward". + dependent_care_employer_benefits_forfeited_or_carried_forward: 1_000 + child: + age: 5 + tax_units: + tax_unit: + members: [head, child] + filing_status: HEAD_OF_HOUSEHOLD + dependent_care_assistance_qualified_expenses: 5_000 + tax_unit_childcare_expenses: 5_000 + households: + household: + members: [head, child] + state_code: TX + output: + # Line 15: $5,000 - $1,000 = $4,000, below the $5,000 of qualified + # expenses (line 16) and the $5,000 cap, so line 25 is $4,000. Without + # line 14 it would be $5,000. Line 26: $0. + dependent_care_assistance_exclusion: 4_000 + taxable_dependent_care_benefits: [0, 0] diff --git a/policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/taxable_dependent_care_benefits.yaml b/policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/taxable_dependent_care_benefits.yaml index 384432710bf..a1ea1ed02a8 100644 --- a/policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/taxable_dependent_care_benefits.yaml +++ b/policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/taxable_dependent_care_benefits.yaml @@ -188,3 +188,556 @@ irs_employment_income: 30_000 payroll_tax_gross_wages: 30_000 taxable_dependent_care_benefits: 0 + +# Form 2441 line 15 subtracts the amounts forfeited or carried forward (line +# 14) from the line 12 benefits. Line 12 is dependent_care_employer_benefits: +# W-2 box 10, not counting any amount above the plan's exclusion, which box 1 +# already includes as wages. Line 26 is line 15 less the line 25 exclusion. +# Line 13 (grace-period carryovers used) is not modeled; +# taxable_dependent_care_benefits_reported supplies a line 26 amount, and a +# negative amount (the default -1) means not supplied. + +- name: Forfeited benefits are neither excluded nor taxable, 2025 + period: 2025 + input: + people: + head: + age: 45 + # Box 1 wages of $23,000 plus $5,000 of box 10 benefits. + employment_income: 28_000 + # Box 10 reports benefits regardless of employee forfeitures. + dependent_care_employer_benefits: 5_000 + dependent_care_employer_benefits_forfeited_or_carried_forward: 1_000 + child: + age: 3 + tax_units: + tax_unit: + members: [head, child] + filing_status: HEAD_OF_HOUSEHOLD + dependent_care_assistance_qualified_expenses: 4_000 + tax_unit_childcare_expenses: 4_000 + households: + household: + members: [head, child] + state_code: TX + output: + # The filer set aside $5,000, incurred $4,000 of qualified expenses and + # forfeited $1,000. Line 15: $5,000 - $1,000 = $4,000. Line 25: the + # smallest of $4,000, $4,000 of qualified expenses (line 16), $23,000 of + # earned income and the $5,000 cap. Line 26: $0. Without line 14, line + # 26 would be $1,000 and AGI $24,000. Line 14 leaves income tax and FICA + # wages at box 1. + irs_employment_income: [23_000, 0] + payroll_tax_gross_wages: [23_000, 0] + dependent_care_assistance_exclusion: 4_000 + taxable_dependent_care_benefits: [0, 0] + adjusted_gross_income: 23_000 + +- name: Box 10 above the plan's exclusion stays in wages when part is carried forward, 2025 + period: 2025 + input: + people: + head: + age: 45 + # One W-2 reports $6,000 in box 10 under a plan with a $5,000 + # exclusion. The $1,000 above it is in box 1 (W-2 instructions, + # p. 19) and not on line 12, so box 1 is $24,000 and line 12 is + # $5,000. + employment_income: 29_000 + dependent_care_employer_benefits: 5_000 + # The filer incurred $5,000 of 2025 expenses but claimed only $4,000 + # from the plan; the $1,000 balance carries forward to the plan's + # 2026 grace period. Line 14 enters it: "Any amount you didn't + # receive but are permitted by your employer to carry forward". + dependent_care_employer_benefits_forfeited_or_carried_forward: 1_000 + child: + age: 3 + tax_units: + tax_unit: + members: [head, child] + filing_status: HEAD_OF_HOUSEHOLD + dependent_care_assistance_qualified_expenses: 5_000 + tax_unit_childcare_expenses: 5_000 + households: + household: + members: [head, child] + state_code: TX + output: + # Line 15: $5,000 - $1,000 = $4,000. Line 25: $4,000. Line 26: $0. The + # $1,000 above the plan's exclusion stays in box 1, so AGI is $24,000. + irs_employment_income: [24_000, 0] + dependent_care_assistance_exclusion: 4_000 + taxable_dependent_care_benefits: [0, 0] + adjusted_gross_income: 24_000 + +- name: Joint return splits the taxable part by each spouse's line 15 amount, 2025 + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 40 + employment_income: 60_000 + dependent_care_employer_benefits: 5_000 + dependent_care_employer_benefits_forfeited_or_carried_forward: 1_000 + spouse: + age: 40 + employment_income: 60_000 + dependent_care_employer_benefits: 5_000 + child: + age: 4 + tax_units: + tax_unit: + members: [head, spouse, child] + filing_status: JOINT + dependent_care_assistance_qualified_expenses: 9_000 + tax_unit_childcare_expenses: 9_000 + households: + household: + members: [head, spouse, child] + state_code: TX + output: + # Line 15: $4,000 + $5,000 = $9,000. Line 25: $5,000 cap. Line 26: + # $4,000, split 4:5. + dependent_care_assistance_exclusion: 5_000 + taxable_dependent_care_benefits: [1_777.78, 2_222.22, 0] + irs_employment_income: [55_000, 55_000, 0] + adjusted_gross_income: 114_000 + +- name: One spouse's line 14 cannot reduce the other spouse's line 15, 2025 + period: 2025 + input: + people: + head: + age: 40 + employment_income: 60_000 + # A forfeiture entered for a spouse with no benefits of their own. + dependent_care_employer_benefits_forfeited_or_carried_forward: 1_000 + spouse: + age: 40 + employment_income: 65_000 + dependent_care_employer_benefits: 5_000 + child: + age: 4 + tax_units: + tax_unit: + members: [head, spouse, child] + filing_status: JOINT + dependent_care_assistance_qualified_expenses: 3_000 + tax_unit_childcare_expenses: 3_000 + households: + household: + members: [head, spouse, child] + state_code: TX + output: + # Each person's line 14 comes from their own line 12, so the head's part + # of line 15 is floored at $0 and the spouse's stays $5,000. Line 25: + # $3,000 of qualified expenses. Line 26: $2,000, all the spouse's. + dependent_care_assistance_exclusion: 3_000 + taxable_dependent_care_benefits: [0, 2_000, 0] + adjusted_gross_income: 122_000 + +- name: A dependent's line 14 lowers only the dependent's own line 15, 2025 + period: 2025 + input: + people: + head: + age: 45 + employment_income: 28_000 + dependent_care_employer_benefits: 5_000 + child: + age: 3 + dependent: + age: 19 + is_tax_unit_dependent: true + employment_income: 6_000 + dependent_care_employer_benefits: 300 + # More than the dependent's own $300 of line 12. + dependent_care_employer_benefits_forfeited_or_carried_forward: 1_000 + tax_units: + tax_unit: + members: [head, child, dependent] + filing_status: HEAD_OF_HOUSEHOLD + dependent_care_assistance_qualified_expenses: 4_000 + tax_unit_childcare_expenses: 4_000 + households: + household: + members: [head, child, dependent] + state_code: TX + output: + # The dependent's part of line 15 is max($300 - $1,000, 0) = $0; the + # head's stays $5,000. Line 25: $4,000 of qualified expenses. Line 26: + # $1,000, all the head's. The model sums every member's line 15, as it + # sums line 12 on main, so without the entry line 15 would be $5,300. + dependent_care_assistance_exclusion: 4_000 + taxable_dependent_care_benefits: [1_000, 0, 0] + +- name: A negative line 12 entry counts as zero in line 15, 2025 + period: 2025 + input: + people: + head: + age: 40 + employment_income: 60_000 + dependent_care_employer_benefits: 5_000 + spouse: + age: 40 + employment_income: 60_000 + # Box 10 cannot be negative; this pins how the model treats one. + dependent_care_employer_benefits: -1_000 + child: + age: 4 + tax_units: + tax_unit: + members: [head, spouse, child] + filing_status: JOINT + dependent_care_assistance_qualified_expenses: 3_000 + tax_unit_childcare_expenses: 3_000 + households: + household: + members: [head, spouse, child] + state_code: TX + output: + # Line 15 parts: $5,000 and $0. Line 25: $3,000 of qualified expenses. + # Line 26: $2,000, all the head's. Before line 14 was modeled, the -$1,000 + # netted against the head's $5,000: line 26 was $1,000, split $1,250 and + # -$250. + dependent_care_assistance_exclusion: 3_000 + taxable_dependent_care_benefits: [2_000, 0, 0] + +- name: A supplied line 26 amount replaces the computed share, and the exclusion stays computed, 2025 + period: 2025 + input: + people: + head: + age: 35 + employment_income: 44_000 + dependent_care_employer_benefits: 4_000 + # The filer also used $1,500 of 2024 benefits in the 2025 grace + # period (line 13, not modeled). Form 2441: line 15 $5,500, line 25 + # the $5,000 cap, line 26 $500. + taxable_dependent_care_benefits_reported: 500 + child_1: + age: 3 + child_2: + age: 6 + tax_units: + tax_unit: + members: [head, child_1, child_2] + filing_status: HEAD_OF_HOUSEHOLD + dependent_care_assistance_qualified_expenses: 6_000 + tax_unit_childcare_expenses: 6_000 + households: + household: + members: [head, child_1, child_2] + state_code: TX + output: + # Line 26 is used as entered. The exclusion stays computed from line 15 + # without line 13: $4,000, where the form's is $5,000. The credit limit + # follows the computed exclusion: $6,000 - $4,000 = $2,000 (the form's + # line 29 is $6,000 - $5,000 = $1,000). + taxable_dependent_care_benefits: [500, 0, 0] + dependent_care_assistance_exclusion: 4_000 + cdcc_limit: 2_000 + irs_employment_income: [40_000, 0, 0] + adjusted_gross_income: 40_500 + +- name: A supplied line 26 of zero is used as entered, 2025 + period: 2025 + input: + people: + head: + age: 45 + employment_income: 28_000 + dependent_care_employer_benefits: 5_000 + # The $1,000 forfeiture is not entered on line 14, but the filer's + # Form 2441 shows line 26 of $0. + taxable_dependent_care_benefits_reported: 0 + child: + age: 3 + tax_units: + tax_unit: + members: [head, child] + filing_status: HEAD_OF_HOUSEHOLD + dependent_care_assistance_qualified_expenses: 4_000 + tax_unit_childcare_expenses: 4_000 + households: + household: + members: [head, child] + state_code: TX + output: + # The computed share would be $5,000 - $4,000 = $1,000. + taxable_dependent_care_benefits: [0, 0] + dependent_care_assistance_exclusion: 4_000 + adjusted_gross_income: 23_000 + +- name: One spouse's supplied line 26 leaves the other spouse's computed share, 2025 + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 40 + employment_income: 60_000 + dependent_care_employer_benefits: 5_000 + dependent_care_employer_benefits_forfeited_or_carried_forward: 1_000 + taxable_dependent_care_benefits_reported: 0 + spouse: + age: 40 + employment_income: 60_000 + dependent_care_employer_benefits: 5_000 + child: + age: 4 + tax_units: + tax_unit: + members: [head, spouse, child] + filing_status: JOINT + dependent_care_assistance_qualified_expenses: 9_000 + tax_unit_childcare_expenses: 9_000 + households: + household: + members: [head, spouse, child] + state_code: TX + output: + # The computed line 26 of $4,000 splits 4:5 as $1,777.78 and $2,222.22. + # The head's $0 replaces only the head's share. + dependent_care_assistance_exclusion: 5_000 + taxable_dependent_care_benefits: [0, 2_222.22, 0] + +- name: A supplied line 26 above this year's line 12 is used as entered, 2025 + period: 2025 + input: + people: + head: + age: 35 + employment_income: 30_000 + # No 2025 benefits (line 12 $0). The filer used $3,000 of 2024 + # benefits in the 2025 grace period (line 13, not modeled). Form + # 2441: line 15 $3,000, line 25 the $2,000 of qualified expenses, + # line 26 $1,000. + taxable_dependent_care_benefits_reported: 1_000 + child: + age: 4 + tax_units: + tax_unit: + members: [head, child] + filing_status: HEAD_OF_HOUSEHOLD + dependent_care_assistance_qualified_expenses: 2_000 + tax_unit_childcare_expenses: 2_000 + households: + household: + members: [head, child] + state_code: TX + output: + # Line 26 is used as entered though the model's line 15 is $0; the + # exclusion stays computed at $0 (the form's is $2,000). + taxable_dependent_care_benefits: [1_000, 0] + dependent_care_assistance_exclusion: 0 + adjusted_gross_income: 31_000 + +- name: A negative supplied line 26 means not supplied, 2025 + period: 2025 + input: + people: + head: + age: 45 + employment_income: 28_000 + dependent_care_employer_benefits: 5_000 + taxable_dependent_care_benefits_reported: -500 + child: + age: 3 + tax_units: + tax_unit: + members: [head, child] + filing_status: HEAD_OF_HOUSEHOLD + dependent_care_assistance_qualified_expenses: 4_000 + tax_unit_childcare_expenses: 4_000 + households: + household: + members: [head, child] + state_code: TX + output: + # Any negative amount, not only the default -1, means not supplied, so + # the computed share applies: $5,000 - $4,000 = $1,000. + taxable_dependent_care_benefits: [1_000, 0] + +# Each input below has a formula that returns its not-supplied value, so Core +# neither carries an entry into a later year nor uprates it: a year without +# an entry uses zero on line 14 and the computed share of line 26. + +- name: A line 14 entry for 2025 does not reach 2026 + period: 2026 + input: + people: + head: + age: 45 + employment_income: 28_000 + dependent_care_employer_benefits: 5_000 + dependent_care_employer_benefits_forfeited_or_carried_forward: + 2025: 1_000 + child: + age: 3 + tax_units: + tax_unit: + members: [head, child] + filing_status: HEAD_OF_HOUSEHOLD + dependent_care_assistance_qualified_expenses: 4_000 + tax_unit_childcare_expenses: 4_000 + households: + household: + members: [head, child] + state_code: TX + output: + # 2026 line 15: $5,000. Line 25: $4,000 of qualified expenses (the 2026 + # cap is $7,500). Line 26: $1,000. Carrying the 2025 entry forward, + # uprated, would leave line 26 at $0. + dependent_care_assistance_exclusion: 4_000 + taxable_dependent_care_benefits: [1_000, 0] + +- name: An explicit zero line 14 entry for 2026 after a 2025 entry + period: 2026 + input: + people: + head: + age: 45 + employment_income: 28_000 + dependent_care_employer_benefits: 5_000 + dependent_care_employer_benefits_forfeited_or_carried_forward: + 2025: 1_000 + 2026: 0 + child: + age: 3 + tax_units: + tax_unit: + members: [head, child] + filing_status: HEAD_OF_HOUSEHOLD + dependent_care_assistance_qualified_expenses: 4_000 + tax_unit_childcare_expenses: 4_000 + households: + household: + members: [head, child] + state_code: TX + output: + dependent_care_assistance_exclusion: 4_000 + taxable_dependent_care_benefits: [1_000, 0] + +- name: One spouse's 2025 line 14 and the other's 2026 line 14 + period: 2026 + absolute_error_margin: 0.01 + input: + people: + head: + age: 40 + employment_income: 60_000 + dependent_care_employer_benefits: 5_000 + dependent_care_employer_benefits_forfeited_or_carried_forward: + 2025: 1_000 + spouse: + age: 40 + employment_income: 60_000 + dependent_care_employer_benefits: 5_000 + dependent_care_employer_benefits_forfeited_or_carried_forward: + 2026: 500 + child: + age: 4 + tax_units: + tax_unit: + members: [head, spouse, child] + filing_status: JOINT + # The $9,500 of 2026 benefits received pays $9,500 of expenses. + dependent_care_assistance_qualified_expenses: 9_500 + tax_unit_childcare_expenses: 9_500 + households: + household: + members: [head, spouse, child] + state_code: TX + output: + # 2026 line 15: the head's $5,000 (no 2026 entry) plus the spouse's + # $4,500. Line 25: the $7,500 cap. Line 26: $2,000, split 50:45. + dependent_care_assistance_exclusion: 7_500 + taxable_dependent_care_benefits: [1_052.63, 947.37, 0] + +- name: A supplied line 26 for 2025 does not reach 2026 + period: 2026 + input: + people: + head: + age: 45 + employment_income: 28_000 + dependent_care_employer_benefits: 5_000 + taxable_dependent_care_benefits_reported: + 2025: 0 + child: + age: 3 + tax_units: + tax_unit: + members: [head, child] + filing_status: HEAD_OF_HOUSEHOLD + dependent_care_assistance_qualified_expenses: 4_000 + tax_unit_childcare_expenses: 4_000 + households: + household: + members: [head, child] + state_code: TX + output: + # 2026 uses the computed share: $5,000 - $4,000 = $1,000. + taxable_dependent_care_benefits: [1_000, 0] + +- name: An explicit zero line 26 for 2026 after a 2025 entry + period: 2026 + input: + people: + head: + age: 45 + employment_income: 28_000 + dependent_care_employer_benefits: 5_000 + taxable_dependent_care_benefits_reported: + 2025: 300 + 2026: 0 + child: + age: 3 + tax_units: + tax_unit: + members: [head, child] + filing_status: HEAD_OF_HOUSEHOLD + dependent_care_assistance_qualified_expenses: 4_000 + tax_unit_childcare_expenses: 4_000 + households: + household: + members: [head, child] + state_code: TX + output: + taxable_dependent_care_benefits: [0, 0] + +- name: One spouse's 2025 line 26 and the other's 2026 line 26 + period: 2026 + input: + people: + head: + age: 40 + employment_income: 60_000 + dependent_care_employer_benefits: 5_000 + taxable_dependent_care_benefits_reported: + 2025: 0 + spouse: + age: 40 + employment_income: 60_000 + dependent_care_employer_benefits: 5_000 + taxable_dependent_care_benefits_reported: + 2026: 0 + child: + age: 4 + tax_units: + tax_unit: + members: [head, spouse, child] + filing_status: JOINT + dependent_care_assistance_qualified_expenses: 9_000 + tax_unit_childcare_expenses: 9_000 + households: + household: + members: [head, spouse, child] + state_code: TX + output: + # Computed 2026 line 26: $10,000 - $7,500 = $2,500, split equally. The + # head has no 2026 entry and keeps $1,250; the spouse's $0 is used. + taxable_dependent_care_benefits: [1_250, 0, 0] diff --git a/policyengine_us/tests/policy/baseline/gov/states/ca/tax/income/credits/child_dependent_care/ca_dependent_care_assistance_exclusion.yaml b/policyengine_us/tests/policy/baseline/gov/states/ca/tax/income/credits/child_dependent_care/ca_dependent_care_assistance_exclusion.yaml index 05368eac099..4ec733c4fa9 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/ca/tax/income/credits/child_dependent_care/ca_dependent_care_assistance_exclusion.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/ca/tax/income/credits/child_dependent_care/ca_dependent_care_assistance_exclusion.yaml @@ -1,5 +1,6 @@ -# Component arithmetic assumes no carryovers, forfeitures or disallowed -# public reimbursement. Costs are independent IRC 129/FTB 3506 line 17 facts. +# Unless a case says otherwise, component arithmetic assumes no carryovers, +# forfeitures or disallowed public reimbursement. Costs are independent IRC +# 129/FTB 3506 line 17 facts. # FTB 3506 Part IV line 22 caps California's excluded dependent care benefits # at $5,000 ($2,500 for a separate return). California did not adopt the 2021 # federal cap of $10,500 ($5,250) (ARPA section 9632) or the 2026 federal cap @@ -240,3 +241,37 @@ # Independent costs bind despite the1,000 California earnings increase. dependent_care_assistance_exclusion: 0 ca_dependent_care_assistance_exclusion: 0 + +- name: California nets carried-forward benefits as the federal exclusion does, 2025 + period: 2025 + input: + people: + head: + age: 35 + employment_income: 55_000 + # FTB 3506 line 13, as Form 2441 line 12. + dependent_care_employer_benefits: 5_000 + # FTB 3506 line 15, as Form 2441 line 14. The filer incurred $4,000 + # of 2025 expenses but claimed only $3,000 from the plan; the $2,000 + # balance carries forward to the plan's 2026 grace period. + dependent_care_employer_benefits_forfeited_or_carried_forward: 2_000 + child: + age: 5 + tax_units: + tax_unit: + members: [head, child] + filing_status: HEAD_OF_HOUSEHOLD + dependent_care_assistance_qualified_expenses: 4_000 + tax_unit_childcare_expenses: 4_000 + households: + household: + members: [head, child] + state_code: CA + output: + # Line 16 (FTB) and line 15 (federal): $5,000 - $2,000 = $3,000, below + # the $4,000 of qualified expenses and the $5,000 cap, so it limits both + # exclusions. Without line 14 (FTB line 15) both would be $4,000. + dependent_care_assistance_exclusion: 3_000 + ca_dependent_care_assistance_exclusion: 3_000 + ca_dependent_care_assistance_addition: 0 + taxable_dependent_care_benefits: [0, 0] diff --git a/policyengine_us/variables/gov/irs/credits/cdcc/dependent_care_assistance_exclusion.py b/policyengine_us/variables/gov/irs/credits/cdcc/dependent_care_assistance_exclusion.py index 9816bd65a67..0d12125e708 100644 --- a/policyengine_us/variables/gov/irs/credits/cdcc/dependent_care_assistance_exclusion.py +++ b/policyengine_us/variables/gov/irs/credits/cdcc/dependent_care_assistance_exclusion.py @@ -1,4 +1,7 @@ from policyengine_us.model_api import * +from policyengine_us.variables.household.income.person.dependent_care_employer_benefits import ( + form_2441_line_15, +) class dependent_care_assistance_exclusion(Variable): @@ -27,9 +30,11 @@ class dependent_care_assistance_exclusion(Variable): ) def formula(tax_unit, period, parameters): - # Total employer-provided dependent care benefits (Form 2441 line 12, - # W-2 box 10). - benefits = add(tax_unit, period, ["dependent_care_employer_benefits"]) + # Form 2441 line 15: employer-provided dependent care benefits (line + # 12, W-2 box 10 less any amount above the plan's exclusion), less + # benefits forfeited or carried forward (line 14). Line 13 (grace-period + # carryovers used) is not modeled. + benefits = tax_unit.sum(form_2441_line_15(tax_unit.members, period)) if not np.any(benefits > 0): return np.zeros_like(benefits) p = parameters(period).gov.irs.gross_income.dependent_care_assistance_programs diff --git a/policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/taxable_dependent_care_benefits.py b/policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/taxable_dependent_care_benefits.py index a63de47a527..13a8c7115b5 100644 --- a/policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/taxable_dependent_care_benefits.py +++ b/policyengine_us/variables/gov/irs/income/taxable_income/adjusted_gross_income/irs_gross_income/taxable_dependent_care_benefits.py @@ -1,4 +1,7 @@ from policyengine_us.model_api import * +from policyengine_us.variables.household.income.person.dependent_care_employer_benefits import ( + form_2441_line_15, +) class taxable_dependent_care_benefits(Variable): @@ -7,10 +10,19 @@ class taxable_dependent_care_benefits(Variable): label = "Taxable dependent care benefits" documentation = ( "Employer dependent care benefits above the IRC 129 exclusion (Form " - "2441 line 26, reported on Form 1040 line 1e). Box 1 wages leave out " - "all of dependent_care_employer_benefits, so this adds back the part " - "the filer cannot exclude. The tax unit's amount is split among its " - "members in proportion to their benefits." + "2441 line 26, reported on Form 1040 line 1e from 2022). Box 1 wages " + "leave out all of dependent_care_employer_benefits, so this adds back " + "the part the filer received and cannot exclude: Form 2441 line 15 " + "(line 12 benefits less amounts forfeited or carried forward) less " + "the exclusion. The tax unit's amount is split among its members in " + "proportion to their line 15 amounts. A person's supplied " + "taxable_dependent_care_benefits_reported of zero or more replaces " + "their computed share; the exclusion and the child and dependent " + "care credit stay computed, though the credit's rate follows " + "adjusted gross income, which includes this amount. Supply " + "taxable_dependent_care_benefits_reported rather than setting this " + "variable: an input here replaces the formula for every person in " + "the simulation that year, and people without a value get zero." ) unit = USD definition_period = YEAR @@ -24,10 +36,14 @@ class taxable_dependent_care_benefits(Variable): def formula(person, period, parameters): tax_unit = person.tax_unit - benefits = person("dependent_care_employer_benefits", period) + # Each person's part of Form 2441 line 15: line 12 benefits less + # amounts forfeited or carried forward (line 14). + benefits = form_2441_line_15(person, period) # The tax_unit projector returns each member's unit-level value. unit_benefits = tax_unit.sum(benefits) exclusion = tax_unit("dependent_care_assistance_exclusion", period) + # Line 26: line 15 less the line 25 exclusion. Line 22 (benefits from + # the filer's own business) is zero for employee benefits. unit_taxable = max_(unit_benefits - exclusion, 0) share = np.divide( benefits, @@ -35,4 +51,8 @@ def formula(person, period, parameters): out=np.zeros_like(benefits), where=unit_benefits > 0, ) - return unit_taxable * share + # A supplied line 26 amount of zero or more replaces this person's + # computed share; a negative amount, such as the default -1, means + # not supplied. + reported = person("taxable_dependent_care_benefits_reported", period) + return where(reported >= 0, reported, unit_taxable * share) diff --git a/policyengine_us/variables/gov/states/ca/tax/income/credits/ca_dependent_care_assistance_exclusion.py b/policyengine_us/variables/gov/states/ca/tax/income/credits/ca_dependent_care_assistance_exclusion.py index b9bf665ff95..fad405babb5 100644 --- a/policyengine_us/variables/gov/states/ca/tax/income/credits/ca_dependent_care_assistance_exclusion.py +++ b/policyengine_us/variables/gov/states/ca/tax/income/credits/ca_dependent_care_assistance_exclusion.py @@ -1,4 +1,7 @@ from policyengine_us.model_api import * +from policyengine_us.variables.household.income.person.dependent_care_employer_benefits import ( + form_2441_line_15, +) class ca_dependent_care_assistance_exclusion(Variable): @@ -23,7 +26,11 @@ class ca_dependent_care_assistance_exclusion(Variable): defined_for = StateCode.CA def formula(tax_unit, period, parameters): - benefits = add(tax_unit, period, ["dependent_care_employer_benefits"]) + # FTB 3506 line 16: employer benefits (line 13, as Form 2441 line + # 12) less amounts forfeited or carried forward (line 15, as Form 2441 + # line 14). Line 14, grace-period carryovers used, is not modeled, as + # on the federal form. + benefits = tax_unit.sum(form_2441_line_15(tax_unit.members, period)) if not np.any(benefits > 0): return np.zeros_like(benefits) p = parameters(period).gov.states.ca.tax.income.credits.child_dependent_care diff --git a/policyengine_us/variables/household/income/person/dependent_care_employer_benefits.py b/policyengine_us/variables/household/income/person/dependent_care_employer_benefits.py index 5325606891c..57aa79e00f9 100644 --- a/policyengine_us/variables/household/income/person/dependent_care_employer_benefits.py +++ b/policyengine_us/variables/household/income/person/dependent_care_employer_benefits.py @@ -1,6 +1,32 @@ from policyengine_us.model_api import * +def form_2441_line_15(person, period): + """Each person's part of Form 2441 line 15 (FTB 3506 line 16). + + Line 12 is dependent_care_employer_benefits: W-2 box 10 benefits, not + counting any box 10 amount above the plan's exclusion, which the employer + already reports as box 1 wages. Line 15 subtracts the amounts forfeited + or carried forward to the next year (line 14). Line 13, prior-year + benefits used this year (in the grace period; in 2021 and 2022, also + carryovers under the relief rules), is not modeled and counts as zero; + taxable_dependent_care_benefits_reported takes a line 26 amount for + returns that have one. Each person's line 14 comes from their own line + 12, so the result is floored at zero for each person: a line 14 entry + above the person's own line 12 reduces nothing else, and a negative line + 12 or line 14 entry counts as zero. + """ + line_12 = person("dependent_care_employer_benefits", period) + line_14 = max_( + person( + "dependent_care_employer_benefits_forfeited_or_carried_forward", + period, + ), + 0, + ) + return max_(line_12 - line_14, 0) + + class dependent_care_employer_benefits(Variable): value_type = float entity = Person @@ -13,7 +39,11 @@ class dependent_care_employer_benefits(Variable): "spending account salary reduction: it is subtracted from income tax " "wages (irs_employment_income) and from FICA and FUTA wages " "(payroll_tax_gross_wages), and any part above the filer's IRC 129 " - "exclusion returns as taxable_dependent_care_benefits." + "exclusion returns as taxable_dependent_care_benefits. Report " + "amounts later forfeited or carried forward here too, as box 10 " + "does, and also in " + "dependent_care_employer_benefits_forfeited_or_carried_forward " + "(Form 2441 line 14)." ) unit = USD definition_period = YEAR diff --git a/policyengine_us/variables/household/income/person/dependent_care_employer_benefits_forfeited_or_carried_forward.py b/policyengine_us/variables/household/income/person/dependent_care_employer_benefits_forfeited_or_carried_forward.py new file mode 100644 index 00000000000..b25449ec533 --- /dev/null +++ b/policyengine_us/variables/household/income/person/dependent_care_employer_benefits_forfeited_or_carried_forward.py @@ -0,0 +1,42 @@ +from policyengine_us.model_api import * + + +class dependent_care_employer_benefits_forfeited_or_carried_forward(Variable): + value_type = float + entity = Person + label = "Dependent care benefits forfeited or carried forward to the next year" + documentation = ( + "Form 2441 line 14 (FTB 3506 line 15): the part of this person's " + "dependent_care_employer_benefits (line 12) that they did not " + "receive this year, either forfeited because they did not incur the " + "expense or carried forward to use in the next year. W-2 box 10 " + "includes these amounts and box 1 leaves them out, as it leaves out " + "all of line 12, so they are neither wages nor taxable dependent care " + "benefits. Box 10 amounts above the plan's exclusion are box 1 wages, " + "not line 12, and do not go here. On the 2021 to 2024 forms line 14 " + "also takes amounts from line 13 (prior-year benefits used this year) " + "that were forfeited or carried over, which the model does not " + "include; enter only the part from line 12. Enter each person's own " + "amount: it reduces only that person's line 12, and any amount beyond " + "it, or a negative amount, counts as zero. An entry applies only to " + "the year entered; a year without one uses zero. Because of its " + "formula, Core does not count this as an input variable, so " + "Simulation.to_input_dict() and to_input_dataframe() leave a supplied " + "amount out unless include_computed_variables=True; supply it in the " + "situation or with set_input." + ) + unit = USD + definition_period = YEAR + default_value = 0 + reference = ( + "https://www.irs.gov/pub/irs-prior/f2441--2025.pdf#page=2", + "https://www.irs.gov/pub/irs-prior/i2441--2025.pdf#page=5", + # PDF pages 18-19. Box 10 reports amounts "regardless of any employee + # forfeitures"; amounts "over your plan's exclusion" go in boxes 1, 3 + # and 5. + "https://www.irs.gov/pub/irs-prior/iw2w3--2025.pdf#page=18", + ) + + def formula(person, period, parameters): + # A formula stops Core carrying an entry into later years and uprating it. + return person.empty_array() diff --git a/policyengine_us/variables/household/income/person/taxable_dependent_care_benefits_reported.py b/policyengine_us/variables/household/income/person/taxable_dependent_care_benefits_reported.py new file mode 100644 index 00000000000..46661aa6cf6 --- /dev/null +++ b/policyengine_us/variables/household/income/person/taxable_dependent_care_benefits_reported.py @@ -0,0 +1,42 @@ +from policyengine_us.model_api import * + + +class taxable_dependent_care_benefits_reported(Variable): + value_type = float + entity = Person + label = "Reported taxable dependent care benefits" + documentation = ( + "This person's part of Form 2441 line 26, taxable dependent care " + "benefits (Form 1040 line 1e from 2022), as supplied, for returns the " + "model does not compute: grace-period carryovers used (line 13), a " + "plan maximum below the statutory cap (line 21), or the 2021 and " + "2022 relief rules. An amount of zero or more is used as entered, " + "including zero. A negative amount, such as the default -1, means " + "not supplied: taxable_dependent_care_benefits then uses this " + "person's computed share of line 26, whatever other people report. " + "The amount changes only taxable_dependent_care_benefits and its " + "readers; the exclusion (dependent_care_assistance_exclusion, line " + "25) and the child and dependent care credit stay computed, though " + "the credit's rate follows adjusted gross income, which includes the " + "supplied amount. On a joint return, a spouse without a supplied " + "amount keeps their computed share, so supply an amount for each " + "spouse with benefits, the amounts adding to line 26. An entry " + "applies only to the year entered. Because of its formula, Core does " + "not count this as an input variable, so Simulation.to_input_dict() " + "and to_input_dataframe() leave a supplied amount out unless " + "include_computed_variables=True; supply it in the situation or with " + "set_input." + ) + unit = USD + definition_period = YEAR + default_value = -1 + reference = ( + # Line 26: "Taxable benefits. Subtract line 25 from line 23." + "https://www.irs.gov/pub/irs-prior/f2441--2025.pdf#page=2", + # Line 26: "Enter this amount on Form 1040, 1040-SR, or 1040-NR, line 1e." + "https://www.irs.gov/pub/irs-prior/i2441--2025.pdf#page=6", + ) + + def formula(person, period, parameters): + # A formula stops Core carrying an entry into later years and uprating it. + return person.empty_array() - 1