Skip to content

Fix AZ property tax credit table selection for married couples#8874

Open
PavelMakarchuk wants to merge 1 commit into
mainfrom
fix-az-ptc-cohabitating-default
Open

Fix AZ property tax credit table selection for married couples#8874
PavelMakarchuk wants to merge 1 commit into
mainfrom
fix-az-ptc-cohabitating-default

Conversation

@PavelMakarchuk

Copy link
Copy Markdown
Collaborator

Summary

az_property_tax_credit (Form 140PTC) selected the Table 1 (living-alone) schedule for married couples, roughly quartering the credit. It relied on cohabitating_spouses, a no-formula input defaulting to False, so a married-filing-jointly couple living together was treated as not cohabitating.

Per ARS §43-1072(A)(3), a claimant who "lived with a spouse or one or more persons" uses the Table 2 schedule (§43-1072(B)(2)); only a claimant who "did not live with a spouse or any other persons" uses Table 1. A married couple living together falls under Table 2.

Fix

Treat the tax unit as cohabitating when it is married (tax_unit_married), in addition to the existing cohabitating_spouses flag. This is a local fix in az_property_tax_credit rather than changing the global cohabitating_spouses default, which also feeds Social Security taxability, Medicaid household size/income, and the NJ property tax credit.

Impact

AZ MFJ, both age 75, $3,638 household income, $9,059 rent, TY2025:

Table az_property_tax_credit
Before Table 1 (living alone) $78
After Table 2 (cohabitating) $323

$323 matches the ARS §43-1072(B)(2) table (household income $3,551–3,700 → $323), PE's own Table 2 parameter, and the reporter's filled 2025 Form 140PTC.

Tests

Added the issue's integration test to az_property_tax_credit.yaml. Full AZ baseline sweep: 468 passed.

Originating TAXSIM comparison: PolicyEngine/policyengine-taxsim#983

Fixes #8649

🤖 Generated with Claude Code

az_property_tax_credit selected the Table 1 (living-alone) schedule for
married couples because it relied on cohabitating_spouses, a no-formula
input defaulting to False. Per ARS 43-1072(A)(3)/(B)(2) and the 2025 Form
140PTC, a claimant who lived with a spouse uses the Table 2 (cohabitating)
schedule. Now treat the tax unit as cohabitating when married, without
changing the global cohabitating_spouses default (which feeds Social
Security taxability, Medicaid, and NJ property tax).

Before: AZ MFJ both 75, $3,638 income -> $78. After: $323.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (f9e58e7) to head (047f3c3).
⚠️ Report is 46 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #8874   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         1    -2     
  Lines           55        16   -39     
=========================================
- Hits            55        16   -39     
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 Harness.
📢 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.

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.

cohabitating_spouses defaults False for married couples, picking the wrong AZ property tax credit table

1 participant