Skip to content

Conversation

@policyengine
Copy link

@policyengine policyengine bot commented Dec 12, 2025

Summary

Fixes #6956 by implementing Option 3: creating a new az_property_tax_credit_agi variable that correctly calculates income for property tax credit purposes.

Changes

  • Created new variable: az_property_tax_credit_agi.py that calculates AGI per ARS 43-1072(H)(6) and Arizona Admin Code R15-2C-502
    • Uses Federal AGI + Arizona additions - Arizona subtractions
    • Does NOT subtract Arizona exemptions (aged, blind, etc.) unlike az_agi
  • Updated parameter: Modified income_sources.yaml to use az_property_tax_credit_agi instead of az_agi
  • Added test: Created test case demonstrating the fix for the issue scenario (75-year-old with $3,766.08 AGI)

Why This Fix is Correct

Per ARS 43-1072(H)(6) and Arizona Admin Code R15-2C-502, the property tax credit uses a custom definition of "adjusted gross income" that:

  • Starts with Federal AGI
  • Adds certain Arizona-specific items
  • Subtracts certain Arizona-specific items
  • Does NOT subtract Arizona exemptions (the $2,100 aged exemption, blind exemption, etc.)

The previous implementation incorrectly used az_agi, which subtracts exemptions as part of the regular Arizona income tax calculation.

Test Results

  • ✅ New test for issue scenario passes (AGI of $3,766.08 correctly calculated, not $1,666.08)
  • ✅ All existing property tax credit tests pass

References

🤖 Generated with Claude Code

PolicyEngine-Bot and others added 2 commits December 12, 2025 17:33
Per ARS 43-1072(H)(6) and Arizona Admin Code R15-2C-502, the "household income"
for property tax credit purposes should use Federal AGI plus Arizona additions
minus Arizona subtractions, but should NOT include the deduction for Arizona
exemptions (aged, blind, etc.).

Created new variable az_property_tax_credit_agi that correctly calculates income
for property tax credit purposes without subtracting exemptions.

Fixes #6956

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Dec 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (5a81d44) to head (3faa5dc).
⚠️ Report is 13 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #6957   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           14        14           
=========================================
  Hits            14        14           
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@MaxGhenis MaxGhenis requested a review from DTrim99 December 13, 2025 02:18
@DTrim99 DTrim99 self-requested a review December 15, 2025 21:50
- Updated az_property_tax_credit_agi to only subtract Social Security
  (not pensions, capital gains, military retirement, or exemptions)
- Fixed income_sources.yaml to use tax-exempt pension variables instead
  of public_pension_income (avoids double-counting)
- Added references to ARS 43-1072 and ITR 12-1 ruling
- Updated tests to verify correct behavior

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@DTrim99
Copy link
Collaborator

DTrim99 commented Dec 15, 2025

Updated Implementation Based on ITR 12-1 Ruling

After reviewing ARS 43-1072 and ITR 12-1 (Arizona Income Tax Ruling on Property Tax Credit Household Income), I've updated the implementation to correctly calculate property tax credit income.

Key Changes

1. az_property_tax_credit_agi.py

Before: Used az_subtractions which incorrectly excluded:

  • Public pension exclusion
  • Military retirement subtraction
  • Long-term capital gains subtraction
  • US Government interest

After: Only subtracts tax_unit_taxable_social_security because:

  • Per ITR 12-1 item (9): Pension income IS included (Arizona state/local, US Government, military retirement)
  • Per ITR 12-1 item (7): Capital gains ARE included
  • Per ITR 12-1 item (2): All interest income IS included (including US Government)
  • Per ARS 43-1072(I): Social Security is excluded

2. income_sources.yaml

Before: Added public_pension_income which caused double-counting (taxable pension is already in Federal AGI)

After:

  • Replaced with tax_exempt_public_pension_income and tax_exempt_private_pension_income
  • Added references to ARS 43-1072 and ITR 12-1

3. Tests

All 139 Arizona tests pass ✅

References

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link
Collaborator

@PavelMakarchuk PavelMakarchuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One format suggestion, lgtm after

@DTrim99
Copy link
Collaborator

DTrim99 commented Dec 15, 2025

@PolicyEngine implement @PavelMakarchuk's suggestion: policyengine_us/parameters/gov/states/az/tax/income/credits/property_tax/income_sources.yaml
@@ -1,22 +1,34 @@
description: Arizona accounts for the following income sources for the property tax credit.
description: >-
Member
@PavelMakarchuk
PavelMakarchuk
2 minutes ago
make this one sentence

@policyengine
Copy link
Author

policyengine bot commented Dec 15, 2025

Done! I've condensed the description to a single sentence as requested. The change has been committed and pushed to the PR branch.

@PavelMakarchuk PavelMakarchuk merged commit 2ad5fcf into master Dec 16, 2025
10 checks passed
@PavelMakarchuk PavelMakarchuk deleted the bot/issue-6956 branch December 16, 2025 13:23
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 Property Tax Credit uses wrong income definition (includes aged exemption)

4 participants