Skip to content

Apply Arizona's dependent and family credits before the charitable credit - #11698

Draft
DTrim99 wants to merge 1 commit into
mainfrom
az-nonrefundable-credit-order
Draft

DTrim99 wants to merge 1 commit into
mainfrom
az-nonrefundable-credit-order

Conversation

@DTrim99

@DTrim99 DTrim99 commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Fixes #9559

What was wrong

gov.states.az.tax.income.credits.non_refundable listed Arizona's 2021+ nonrefundable credits as charitable contributions, dependent, family. Since #7984, each credit is capped at the tax left after the credits listed before it, so the list order sets each credit's applied amount. Arizona applies them the other way round:

  • The 2025 Form 140 booklet enters the dependent tax credit on line 49, the family income tax credit on line 50 and the Form 301 credits on line 51, then subtracts lines 49-51 from line 48 (PDF pp. 26-28, 30).
  • The 2025 Form 301 instructions set line 33 to tax (line 31) less the family and dependent credits claimed on the return (line 32), floored at zero, and say "the total amount of tax credits you use cannot exceed the amount entered on line 33" (PDF p. 3). The qualifying charitable organizations credit is line 39, with a five-year carryforward for the unused part (PDF p. 4).

A.R.S. 43-1073, 43-1073.01 and 43-1088 set no order among the credits, so the forms fill the gap and there is no source conflict to record.

On $100 of tax with a $40 dependent credit, a $30 family credit and an $80 charitable credit, main applied charitable $80, dependent $20 and family $0. The forms give dependent $40, family $30 and charitable $30. Total nonrefundable credits ($100) and az_income_tax were the same either way. With the refundable dependent credit contrib on, the wrong order stranded the dependent credit and refunded it: in the issue's example, main pays a $125 refund that the forms don't.

What changes

  • parameters/gov/states/az/tax/income/credits/non_refundable.yaml: the 2021+ block is now dependent, family, charitable. The 2019-2020 block (dependent, family) has no charitable entry and is unchanged. Adds the 2025 Form 140 booklet and Form 301 instructions as references.
  • reforms/states/az/dependent_credit/az_dependent_credit_reform.py: removes the comment that described the old order and pointed at AZ baseline non-refundable credit ordering applies charitable before dependent/family credits, contrary to Forms 140/301 #9559. It keeps a shorter note that the refund inherits the baseline order. No code changes; the refund already reads the list.
  • tests/code_health/test_source_conflicts.py: deletes the reform file's KNOWN_UNMARKED line (count 1). The removed comment ("contrary to AZ Forms 140/301") was the file's only conflict-sounding comment, and the ratchet fails on a leftover line once the count drops to 0.
  • Changelog fragment changelog.d/az-nonrefundable-credit-order.fixed.md.

Who is affected

Arizona filers who claim the charitable contributions credit together with the dependent or family credit, and whose tax before credits is less than the sum. Their total nonrefundable credits and Arizona income tax don't change in baseline; the split among the three credits does (more dependent and family credit, less charitable credit). Under the refundable dependent credit contrib, their refund falls by the dependent credit the charitable credit used to absorb, up to the full refund.

Tests

File Case Main Branch
tests/policy/baseline/gov/states/az/tax/income/credits/az_non_refundable_credit_order.yaml Case 1 (rewritten; was "Applied non-refundable credits follow filing order"), 2021, $100 tax dependent 20, family 0, charitable 80: fails dependent 40, family 30, charitable 30: passes
same Case 1 added outputs total 100, az_income_tax_before_refundable_credits 0, az_income_tax −25 same values: unchanged
same Case 2 (new), 2025, $30 tax dependent 0, family 0, charitable 30: fails dependent 30, family 0, charitable 0: passes
tests/policy/contrib/states/az/dependent_credit/az_refundable_dependent_credit.yaml new case, 2026, single, one child aged 5, $300 tax, $300 charitable credit, AGI $50,000 dependent 0, charitable 300, refund 125, az_income_tax −125: fails dependent 125, charitable 175, refund 0, az_income_tax 0: passes

Changed expected values (Case 1): az_charitable_contributions_credit 80 → 30, az_dependent_tax_credit 20 → 40, az_family_tax_credit 0 → 30, from Form 140 lines 49-51 and Form 301 line 33 ($100 − $40 − $30 = $30 left for the charitable credit). The −25 in az_income_tax is the $25 increased excise tax credit for one person.

Runs (policyengine-core 3.37.2, locally):

  • The two changed test files against main (50af7fba69): 3 failed (Case 1, Case 2 and the new contrib case), 4 passed (the existing contrib cases).
  • Branch, tests/policy/baseline/gov/states/az/tax and tests/policy/contrib/states/az: 630 passed, 0 failed.
  • Branch, code health (test_source_conflicts.py, parameters.py, test_parameter_yaml_keys.py, test_reference_urls.py, test_no_concatenated_reference_urls.py, test_non_refundable_credit_downstream_consumers.py, test_known_dead_reference_urls.py): 407 passed, 0 failed, after the KNOWN_UNMARKED change.
  • No partner test reads an Arizona variable (grep -rl az_ policyengine_us/tests/policy/baseline/partners finds nothing).
  • ruff format and ruff check pass on the two changed Python files.

Not in this PR

axiom: TheAxiomFoundation/rulespec-us#2936 queued

🤖 Generated with Claude Code

…edit

Forms 140 and 301 apply the dependent tax credit (line 49) and family
income tax credit (line 50) before the Form 301 credits, and Form 301
caps those credits at the tax left after the two (Part 2, line 33).
Reorder the 2021+ non-refundable list to dependent, family, charitable.
Totals and az_income_tax are unchanged in baseline; the per-credit split
and the refundable dependent credit contrib's refund change.

Fixes #9559.

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.

AZ baseline non-refundable credit ordering applies charitable before dependent/family credits, contrary to Forms 140/301

1 participant