-
Notifications
You must be signed in to change notification settings - Fork 201
Fix Arizona Family Tax Credit income calculation per ARS 43-1073 #6990
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Per ARS 43-1073, the income threshold for Family Tax Credit eligibility should be "Arizona adjusted gross income, plus the amount subtracted for exemptions under section 43-1023". This fixes the implementation to add exemptions back to az_agi. Changes: - Updated az_family_tax_credit_eligible.py to use az_agi + az_exemptions - Added reference to ARS 43-1073 in variable metadata - Updated all test cases to explicitly set az_exemptions - Added new test cases demonstrating exemptions affect eligibility Fixes #6989 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6990 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 4 1 -3
Lines 68 18 -50
=========================================
- Hits 68 18 -50
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:
|
|
@PolicyEngine we have this test failing: =================================== FAILURES =================================== |
|
✅ Fixed! The issue was that the test cases were using SINGLE filing status with 0 dependents (income limit $10,000), but testing with $22,000 total income, which would always be ineligible. I updated both test cases to use JOINT filing status with 2 dependents (income limit $23,600):
This properly demonstrates how exemptions are added to AGI per ARS 43-1073. All 8 tests now pass. Committed and pushed to the PR branch. |
The previous test cases used SINGLE filing status with 0 dependents (income limit $10,000), but tested with total income of $22,000, which would always be ineligible. Updated both test cases to use JOINT filing status with 2 dependents (income limit $23,600): - Eligible case: AGI $19,900 + exemptions $2,100 = $22,000 (under $23,600 limit) - Ineligible case: AGI $23,000 + exemptions $2,100 = $25,100 (over $23,600 limit) This properly demonstrates how exemptions are added to AGI per ARS 43-1073. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
📋 PR Review - Arizona Family Tax Credit Fix✅ Summary: APPROVEThis PR correctly fixes the Arizona Family Tax Credit income eligibility calculation per ARS 43-1073. 🟢 Validation Results
📜 Statutory VerificationARS 43-1073 specifies income for this credit as:
The fix correctly adds income = az_agi + exemptions🟡 Minor Note (Not blocking)The statute also mentions adding back "Arizona small business gross income under section 43-1022, paragraph 28", but this subtraction is not yet implemented in PolicyEngine US. When ✅ Strengths
🚀 Ready to MergeAll tests pass and the implementation correctly reflects Arizona statute. 🤖 Automated review by Claude Code |
Summary
Fixes #6989 - The Arizona Family Tax Credit eligibility was using the wrong income measure. Per ARS 43-1073, the income threshold should be "Arizona adjusted gross income, plus the amount subtracted for exemptions under section 43-1023".
Changes
Updated
az_family_tax_credit_eligible.py:az_agito usingaz_agi + az_exemptionsUpdated test file (
az_family_tax_credit_eligible.yaml):az_exemptions: 0to all existing test cases for clarityAdded changelog entry documenting the fix
Impact
This fix ensures the Family Tax Credit eligibility determination correctly follows Arizona law. The previous implementation understated income by not adding back exemptions, potentially making people eligible who shouldn't be according to statute.
Test Plan
🤖 Generated with Claude Code