Fix WI CDCC to use state expense limits ($10k/individual) for 2024+#7688
Open
Fix WI CDCC to use state expense limits ($10k/individual) for 2024+#7688
Conversation
Wisconsin Act 101 of 2023 (§71.07(9g)(c)5) sets a $10,000/individual expense limit for tax years beginning after December 31, 2023, replacing the federal IRC §21(c) limit of $3,000/$6,000. The prior formula used cdcc_potential directly (which inherits federal limits) for all years. Adds max_expense parameter (0 pre-2024, $10,000 for 2024+) and updates the formula to recompute relevant expenses with the WI limit when applicable, then apply the federal CDCC percentage rate. Closes #7684 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7688 +/- ##
===========================================
+ Coverage 97.82% 100.00% +2.17%
===========================================
Files 3 1 -2
Lines 92 23 -69
Branches 2 1 -1
===========================================
- Hits 90 23 -67
+ Misses 1 0 -1
+ Partials 1 0 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Collaborator
PR Review🔴 Critical (Must Fix)
🟡 Should Address
🟢 Suggestions
Validation Summary
Regulatory VerificationThe implementation correctly reflects Wisconsin Statute §71.07(9g)(c)5 as enacted by 2023 Wisconsin Act 101:
Next StepsTo auto-fix issues: Or address manually:
🤖 Review generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes Wisconsin's child and dependent care credit (
wi_childcare_expense_credit) to use the state-specific expense limit enacted by 2023 Wisconsin Act 101.The bug: For 2024+, the WI formula used
cdcc_potential * 1.0, which inherits the federal expense limits ($3,000 for one qualifying individual, $6,000 for two or more). Wisconsin Statute §71.07(9g)(c)5 sets a $10,000 per qualifying individual limit for tax years beginning after December 31, 2023.Impact: A Wisconsin family with one child and $7,000 in childcare expenses would receive a $400 credit under the old code (federal $3,000 cap × 20% rate) vs. the correct $1,400 (WI $7,000 cap × 20% rate).
Closes #7684
Changes
gov.states.wi.tax.income.credits.childcare_expense.max_expense—0for pre-2024 years (meaning use federal approach),$10,000for 2024+wi_childcare_expense_credit— for 2024+, recomputes relevant expenses using the WI per-individual limit, then applies the federal CDCC rate and the WI fraction (1.0 for 2024+)Test plan
uv run policyengine-core test policyengine_us/tests/policy/baseline/gov/states/wi/tax/income/wi_childcare_expense_credit.yaml -c policyengine_uscdcc_potential * fraction)$10,000 * count_eligibleLegislative reference
Wisconsin Statute § 71.07(9g)(c)5 (2023 Wisconsin Act 101):
Source: https://docs.legis.wisconsin.gov/statutes/statutes/71/i/07/9g
🤖 Generated with Claude Code