Skip to content

Add tax-exempt interest and charitable deduction targets#881

Merged
MaxGhenis merged 1 commit into
mainfrom
add-tax-exempt-interest-targets
May 4, 2026
Merged

Add tax-exempt interest and charitable deduction targets#881
MaxGhenis merged 1 commit into
mainfrom
add-tax-exempt-interest-targets

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

@MaxGhenis MaxGhenis commented May 4, 2026

Summary

  • re-enable national SOI tax-exempt interest aggregate targets
  • add national AGI-bin tax-exempt interest dollar and filer-count targets to the ETL and target config
  • add national SOI charitable deduction aggregate/count targets
  • update target-config and ETL coverage tests

Context

The remaining outlier scan showed a few non-mortgage, non-LTCG variables that were still targetable. The locally available H5 has tax_exempt_interest_income at about $82.6B for 2024 with a max record around $244M; the stored 2023 SOI exempt-interest aggregate is $66.1B. It also has charitable_deduction at about $301.1B; the stored 2023 SOI charitable-contribution deduction aggregate is $212.0B.

These are much less severe than mortgage interest or the prior capital-gains issue, but both are targetable with existing SOI rows. This follows the same logic as #868: a high-error soft target is preferable to leaving the aggregate unconstrained when the variable can affect downstream federal/state tax calculations.

Validation

  • uv run pytest tests/unit/calibration/test_target_config.py -q
  • uv run pytest tests/unit/calibration/test_target_config.py tests/unit/test_etl_irs_soi_overlay.py::test_load_national_geography_ctc_agi_targets_creates_capital_income_domains tests/unit/test_etl_irs_soi_overlay.py::test_workbook_domain_targets_include_charitable_deduction -q
  • uv run ruff format --check policyengine_us_data/db/etl_irs_soi.py tests/unit/test_etl_irs_soi_overlay.py tests/unit/calibration/test_target_config.py
  • uv run ruff check policyengine_us_data/db/etl_irs_soi.py tests/unit/test_etl_irs_soi_overlay.py tests/unit/calibration/test_target_config.py

@MaxGhenis MaxGhenis force-pushed the add-tax-exempt-interest-targets branch from c6ed3ec to 654b9fc Compare May 4, 2026 16:34
@MaxGhenis MaxGhenis force-pushed the add-tax-exempt-interest-targets branch from 654b9fc to c0d610f Compare May 4, 2026 16:37
@MaxGhenis MaxGhenis changed the title Add tax-exempt interest calibration targets Add tax-exempt interest and charitable deduction targets May 4, 2026
@MaxGhenis MaxGhenis merged commit 8dea889 into main May 4, 2026
10 checks passed
@MaxGhenis MaxGhenis deleted the add-tax-exempt-interest-targets branch May 4, 2026 17:00
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.

1 participant