Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
244 changes: 244 additions & 0 deletions audit/state_credit_income/AUDIT.md

Large diffs are not rendered by default.

677 changes: 677 additions & 0 deletions audit/state_credit_income/audit.csv

Large diffs are not rendered by default.

307 changes: 307 additions & 0 deletions audit/state_credit_income/details/batch-A.md

Large diffs are not rendered by default.

326 changes: 326 additions & 0 deletions audit/state_credit_income/details/batch-B.md

Large diffs are not rendered by default.

420 changes: 420 additions & 0 deletions audit/state_credit_income/details/batch-C.md

Large diffs are not rendered by default.

252 changes: 252 additions & 0 deletions audit/state_credit_income/details/batch-D.md

Large diffs are not rendered by default.

222 changes: 222 additions & 0 deletions audit/state_credit_income/details/batch-E.md

Large diffs are not rendered by default.

267 changes: 267 additions & 0 deletions audit/state_credit_income/details/batch-F.md

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions audit/state_credit_income/tests/az_property_tax_credit_income.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Target: policyengine_us/tests/policy/baseline/gov/states/az/tax/income/credits/az_property_tax_credit_income.yaml
# Batch D audit cases. Each fails on upstream/main 06c0dcbc54 (main's value is
# in the comment) and passes once tax-exempt retirement account distributions
# are counted.
# ARS 43-1072(H)(6)(g): income includes "The gross amount of any pension or
# annuity not otherwise exempted". A.A.C. R15-2C-502(A)(1) counts income
# "whether or not subject to Arizona income tax". 2025 Form 140PTC
# instructions, line E (page 4): "Pension income that you must enter here
# includes the following: ... any IRA distributions." ITR 12-1 item (9) leaves
# out only rollovers.

- name: Roth IRA distribution is a line E pension amount
period: 2025
input:
people:
head:
age: 70
tax_exempt_ira_distributions: 3_000
rent: 5_000
tax_units:
tax_unit:
members: [head]
households:
household:
members: [head]
state_code: AZ
output:
# Line E: IRA distributions 3,000. Line J: 3,000. Main: 0.
az_property_tax_credit_income: 3_000
az_property_tax_credit_household_income: 3_000
# Line 11a: Schedule 1, 2,951 - 3,050 -> 212 (as in the existing
# 3,000-income cases of this file). Line 13: 0.15 x 5,000 = 750.
# Line 15: smaller of 212 and 750.
az_property_tax_credit: 212

- name: Nontaxable 401(k) distribution counts with the taxable pension
period: 2025
input:
people:
head:
age: 70
taxable_private_pension_income: 2_000
tax_exempt_401k_distributions: 1_000
rent: 5_000
tax_units:
tax_unit:
members: [head]
households:
household:
members: [head]
state_code: AZ
output:
# Line E: gross pension and retirement plan payments 2,000 + 1,000 = 3,000.
# Line J: 3,000. Main: 2,000.
az_property_tax_credit_income: 3_000
az_property_tax_credit_household_income: 3_000
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Target: policyengine_us/tests/policy/baseline/gov/local/co/denver/dhs/property_tax_relief/co_denver_property_tax_relief_income.yaml (new file)
# Batch F (sweep). Not run. Fails on main (06c0dcbc54), where
# gov.local.co.denver.dhs.property_tax_relief.income_sources lists
# pension_income but not military_retirement_income, retirement account
# distributions, or Colorado Old Age Pension.
#
# Law: Denver HOST Property Tax Relief Program Guidelines (effective May 2026),
# Definitions: "Income: ... all financial income resources of the household
# members will be considered as 'income,' except: [gifts, prior-year rebates,
# tax refunds, Medicaid, SNAP, child support, TANF, LEAP, education
# assistance, SSDI, SSI, Social Security retirement benefits]". Proof of
# income: "e. Old Age Pension (OAP) ... g. Pension or annuity benefits".
# The ordinance (D.R.M.C. 53-492) could not be opened; confirm it first.

- name: Batch F Denver, military retired pay, IRA distributions and Old Age Pension count.
period: 2025
absolute_error_margin: 0.01
input:
people:
person1:
age: 70
taxable_pension_income: 10_000
military_retirement_pay: 20_000
taxable_ira_distributions: 4_000
co_oap: 3_000
# Excluded by the guidelines (item m), so it must not be added.
social_security_retirement: 12_000
households:
household:
members: [person1]
state_code: CO
in_denver: true
output:
# 10,000 pension + 20,000 military retired pay + 4,000 IRA distribution
# + 3,000 Old Age Pension = 37,000. Social Security is excluded.
# Main returns 10,000 (pension_income only).
co_denver_property_tax_relief_income: 37_000
76 changes: 76 additions & 0 deletions audit/state_credit_income/tests/ia_modified_income.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Target: policyengine_us/tests/policy/baseline/gov/states/ia/tax/income/ia_modified_income.yaml
# (No such file on upstream/main 06c0dcbc54.)
# Batch E audit cases. Each fails on main (main's value is in the comment).
# Iowa Code 422.5(2)(a): net income for the low-income exemption, the tax
# reduction and the alternate tax adds back "any amount of itemized or
# standard deduction, personal exemption deduction, or qualified business
# income deduction that was allowed as a deduction in computing federal
# taxable income". 2025 expanded instructions, line 4: Iowa taxable income
# (line 4) + line 1d + Schedule 1-A line 37 + line 1e.
# The expected values do not depend on the size of the standard deduction:
# it is subtracted in line 2 and added back. Not run (the audit was read-only).

- name: The qualified business income deduction is added back once.
period: 2025
absolute_error_margin: 0.01
input:
people:
person1:
age: 40
employment_income: 50_000
tax_units:
tax_unit:
members: [person1]
qualified_business_income_deduction: 2_000
households:
household:
members: [person1]
state_code: IA
output:
# Line 2: 50,000 - standard deduction - 2,000. Add back the standard
# deduction and the 2,000. Main: 52,000 (the 2,000 is added twice).
ia_modified_income: 50_000

- name: The overtime deduction is not one of the deductions added back.
period: 2025
absolute_error_margin: 0.01
input:
people:
person1:
age: 40
employment_income: 50_000
tax_units:
tax_unit:
members: [person1]
overtime_income_deduction: 5_000
households:
household:
members: [person1]
state_code: IA
output:
# Line 2: 50,000 - standard deduction - 5,000 (federal Form 1040 line
# 13b). Only the standard deduction is added back. Main: 50,000.
ia_modified_income: 45_000

- name: Federal taxable income may be negative for Iowa, so low income stays low.
period: 2025
absolute_error_margin: 0.01
input:
people:
person1:
age: 40
employment_income: 8_000
tax_units:
tax_unit:
members: [person1]
households:
household:
members: [person1]
state_code: IA
output:
# Line 2: 8,000 - standard deduction (negative). Add back the standard
# deduction: 8,000. Main: the standard deduction (15,750), because
# taxable income is floored at zero first.
ia_modified_income: 8_000
# 8,000 <= 9,000. Main: false.
ia_is_tax_exempt: true
34 changes: 34 additions & 0 deletions audit/state_credit_income/tests/il_scretd_income_eligible.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Target: policyengine_us/tests/policy/baseline/gov/states/il/idor/scretd/il_scretd_income_eligible.yaml
# Batch F (sweep). Not run. Fails on main (06c0dcbc54), where the test sums
# irs_gross_income, which holds only the taxable part of Social Security.
#
# Law: 320 ILCS 30/2(h): "Household income" has the meaning given in the
# Senior Citizens and Persons with Disabilities Property Tax Relief Act.
# 320 ILCS 25/3.07: "Income" means federal adjusted gross income "modified by
# adding thereto ... (D) An amount equal to the amount of benefits paid under
# the Federal Social Security Act during the taxable year".
# 320 ILCS 30/2(j)(5): maximum household income is $75,000 for tax year 2025.

- name: Batch F IL, all Social Security benefits count in household income.
period: 2025
input:
people:
person1:
age: 70
taxable_pension_income: 30_000
social_security_retirement: 60_000
tax_units:
tax_unit:
members: [person1]
households:
household:
members: [person1]
state_code: IL
output:
# Income = AGI + Social Security not in AGI = 30,000 pension + 60,000
# Social Security = 90,000, whatever part of the benefits is taxable.
# 90,000 > 75,000, so not eligible.
# Main: gross income = 30,000 + taxable Social Security (26,600: half of
# 9,000 plus 85% of 26,000 of provisional income above 34,000) = 56,600,
# under the limit, so it returns true.
il_scretd_income_eligible: false
170 changes: 170 additions & 0 deletions audit/state_credit_income/tests/ma_scb_total_income.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
# Target: policyengine_us/tests/policy/baseline/gov/states/ma/tax/income/credits/senior_circuit_breaker/ma_scb_total_income.yaml
# Batch E audit cases. Each fails on upstream/main 06c0dcbc54 (main's value is
# in the comment). M.G.L. c.62 s.6(k)(1): total income is Part A + B + C
# adjusted gross income, increased by the listed receipts "to the extent they
# are excluded or subtracted from adjusted gross income", less the age 65,
# blindness and dependent exemptions. Not run (the audit was read-only).

- name: Deductions allowed in reaching Massachusetts AGI reduce total income. # Schedule CB line 3 worksheet, line 2: Schedule Y lines 2 through 9b and 10.
period: 2025
absolute_error_margin: 0.1
input:
people:
head:
age: 70
employment_income: 30_000
is_tax_unit_head: true
ssi: 0
ma_state_supplement: 0
tax_units:
tax_unit:
health_savings_account_ald: 2_000
members: [head]
spm_units:
spm_unit:
tanf: 0
members: [head]
households:
household:
members: [head]
state_code: MA
output:
# Massachusetts AGI: 30,000 wages - 2,000 HSA deduction (Schedule Y line 8).
ma_agi: 28_000
# 28,000 - 700 aged exemption. Main: 29,300 (starts from gross income).
ma_scb_total_income: 27_300

- name: A long-term capital loss deducted against a short-term gain is added back. # c.62 s.2(c)(2)(b); s.6(k)(1) "net capital losses deducted pursuant to paragraph (2) of subsection (c) of section 2".
period: 2025
absolute_error_margin: 0.1
input:
people:
head:
age: 70
employment_income: 20_000
short_term_capital_gains: 10_000
long_term_capital_gains: -10_000
is_tax_unit_head: true
ssi: 0
ma_state_supplement: 0
tax_units:
tax_unit:
members: [head]
spm_units:
spm_unit:
tanf: 0
members: [head]
households:
household:
members: [head]
state_code: MA
output:
# Part B AGI 20,000. Part A AGI: 10,000 gain - 10,000 long-term loss = 0;
# the 10,000 loss deducted is added back. Worksheet: Schedule B line 15
# (short-term gains before losses) 10,000.
# 20,000 + 10,000 - 700 aged exemption. Main: 19,300.
ma_scb_total_income: 29_300

- name: Tax-exempt retirement account distributions are added to total income. # s.6(k)(1) "the total amount of income and receipts from ... retirement"; Schedule CB line 5.
period: 2025
absolute_error_margin: 0.1
input:
people:
head:
age: 71
tax_exempt_ira_distributions: 6_000
ssi: 0
ma_state_supplement: 0
tax_units:
tax_unit:
ma_gross_income: 25_000
members: [head]
spm_units:
spm_unit:
tanf: 0
members: [head]
households:
household:
members: [head]
state_code: MA
output:
# 25,000 + 6,000 - 700 aged exemption. Main: 24,300.
ma_scb_total_income: 30_300

- name: EAEDC is cash public assistance and is added to total income. # s.6(k)(1) "cash, but not in-kind, public assistance".
period: 2025
absolute_error_margin: 0.1
input:
people:
head:
age: 71
ssi: 0
ma_state_supplement: 0
tax_units:
tax_unit:
ma_gross_income: 25_000
members: [head]
spm_units:
spm_unit:
tanf: 0
ma_eaedc: 2_400
members: [head]
households:
household:
members: [head]
state_code: MA
output:
# 25,000 + 2,400 - 700 aged exemption. Main: 24,300.
ma_scb_total_income: 26_700

- name: Workers' compensation is added to total income. # 2025 Form 1 instructions, Schedule CB line 6: "worker's compensation".
period: 2025
absolute_error_margin: 0.1
input:
people:
head:
age: 71
workers_compensation: 5_000
ssi: 0
ma_state_supplement: 0
tax_units:
tax_unit:
ma_gross_income: 25_000
members: [head]
spm_units:
spm_unit:
tanf: 0
members: [head]
households:
household:
members: [head]
state_code: MA
output:
# 25,000 + 5,000 - 700 aged exemption. Main: 24,300.
ma_scb_total_income: 29_300

- name: Disability pay outside federal gross income is added to total income. # Schedule CB line 6: "disability income ... sick pay".
period: 2025
absolute_error_margin: 0.1
input:
people:
head:
age: 71
tax_exempt_disability_benefits: 4_000
ssi: 0
ma_state_supplement: 0
tax_units:
tax_unit:
ma_gross_income: 25_000
members: [head]
spm_units:
spm_unit:
tanf: 0
members: [head]
households:
household:
members: [head]
state_code: MA
output:
# 25,000 + 4,000 - 700 aged exemption. Main: 24,300.
ma_scb_total_income: 28_300
Loading
Loading