Skip to content
Merged
1 change: 1 addition & 0 deletions changelog.d/repeal-dep-exemptions-de-mi-ma-in.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Removed Delaware's dependent personal credits, Michigan's filing-exception dependent exemptions, Massachusetts's Part B dependent exemption and Indiana's qualifying-child and adoption exemptions in years when the contributed repeal applies and corrected Delaware EITC reporting to use the credit applied on the selected return.
78 changes: 39 additions & 39 deletions policyengine_us/reforms/state_dependent_exemptions/README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
The following adjustments have been made in this reform:
Alabama: Neutralize dependent exemptions
California: Remove the dependent exemption structure from `ca_exemptions`
Georgia: Remove the dependent exemption structure from `ga_exemptions`
Hawaii: Change the `exemptions_count` to `head_spouse_count`
Illinois: Neutralize dependent exemptions
Indiana: Change the `tax_unit_size` to `head_spouse_count`
Iowa: Remove the dependent exemption structure from `ia_exemption_credit`
Kansas: Remove the dependents from the exemption count
Louisiana: Neutralize dependent exemptions
Maryland: Change the `tax_unit_size` to `head_spouse_count`
Massachusetts: Remove the dependent exemption structure from `ma_income_tax_exemption_threshold`
Michigan: Change the `tax_unit_size` to `head_spouse_count`
Minnesota: Neutralize dependent exemptions
Mississippi: Neutralize dependent exemptions
Montana: Neutralize the dependent exemptions person
Nebraska: Change the `tax_unit_size` to `head_spouse_count`
New Jersey: Neutralize dependent exemptions
New Mexico: Neutralize the deduction for certain dependents
New York: Neutralize dependent exemptions
North Carolina: Neutralize the child deduction
Ohio: Remove `is_tax_unit_dependent` from the exemption eligibility criteria
Oklahoma: Remove the dependents from the total exemptions
Rhode Island: Change the `exemptions_count` to `head_spouse_count`
South Carolina: Neutralize dependent exemptions
Utah: Neutralize the personal exemption amount
Vermont: Remove the dependents from the personal exemptions
Virginia: Only apply the personal exemptions to the head and spouse
West Virginia: Change the `tax_unit_size` to `head_spouse_count`
Wisconsin: Change the `tax_unit_size` to `head_spouse_count`
Arizona: Neutralize dependent exemptions
Arkansas: Neutralize dependent exemptions
Delaware: Change the `tax_unit_size` to `head_spouse_count`
Idaho: Neutralize dependent exemptions CTC
Iowa: Change the `tax_unit_size` to `head_spouse_count`
Kentucky: Change the `tax_unit_size` in family_size to `head_spouse_count`
Maine: Neutralize dependent exemptions
Nebraska: Change the `tax_unit_size` to `head_spouse_count`
Oklahoma: Remove CTC portion and update return
# Repeal of state dependent exemptions

When you enable the reform, PolicyEngine makes these changes.

- In Alabama, remove the dependent exemption.
- In Arizona, remove the dependent tax credit.
- In Arkansas, remove the dependent personal credit.
- In California, keep eligible personal, blind and senior credits and remove dependent credits.
- In Delaware, remove dependent personal credits on both joint and combined separate returns. Keep personal credits for filers who cannot be claimed on another return, subject to the credit limits.
- In Georgia, keep the personal exemption by filing status when it applies.
- In Hawaii, keep regular and aged exemptions for filers who cannot be claimed on another return.
- In Idaho, remove the child tax credit.
- In Illinois, remove the dependent exemption.
- In Indiana, keep each filer's base exemption and remove the base exemption for dependents, the additional exemption for qualifying children and the adoption exemption.
- In Iowa, count filers and the head-of-household, age and blindness additions for the exemption credit.
- In Kansas, keep the filing-status, head-of-household and veteran amounts when they apply. For years before the filing-status amounts apply, count filers who cannot be claimed on another return for the consolidated exemption.
- In Kentucky, count filers toward the family size credit threshold.
- In Louisiana, remove the dependent exemption.
- In Maine, remove the dependent exemption credit.
- In Maryland, use the filing-status count for personal exemptions, including filers who can be claimed on another return.
- In Massachusetts, exclude dependents from the no-tax-status threshold and remove their exemptions from Part B taxable income.
- In Michigan, remove dependent personal exemptions, including those a claimable filer can take under the filing exception. Keep the claimable-filer allowance and the stillbirth, disability and disabled veteran exemptions where they apply.
- In Minnesota, remove the dependent exemptions.
- In Mississippi, remove the dependent exemption.
- In Montana, remove the per-person dependent exemption.
- In Nebraska, use the filing-status count for the exemption credit, including filers who can be claimed on another return.
- In New Jersey, remove the dependent exemption.
- In New Mexico, remove the deduction for certain dependents.
- In New York, remove the child dependent exemptions.
- In North Carolina, remove the child deduction.
- In Ohio, limit the personal exemption to filers who cannot be claimed on another return.
- In Oklahoma, keep the regular exemptions for filers who cannot be claimed on another return and retain the age and blindness additions. Use the child care share for the combined child care and child tax credit.
- In Rhode Island, apply the income reduction to exemptions for filers who cannot be claimed on another return.
- In South Carolina, remove the dependent exemption.
- In Utah, remove the dependent exemption amount from the taxpayer credit calculation.
- In Vermont, count the head and, on a joint return, the spouse when they cannot be claimed on another return.
- In Virginia, keep the regular personal exemption for filers who cannot be claimed on another return.
- In West Virginia, give each claimable filer the $500 base amount and each other filer the regular amount. Apply the $500 fallback when the unit has no eligible or claimable filer.
- In Wisconsin, keep the base exemption for filers who cannot be claimed on another return.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,20 @@
)


def create_repeal_state_dependent_exemptions() -> Reform:
def create_repeal_state_dependent_exemptions(*, activate=False) -> Reform:
def repeal_in_effect(parameters, period):
return parameters(
period
).gov.contrib.repeal_state_dependent_exemptions.in_effect

def repeal_dependent_amount(variable):
def formula(tax_unit, period, parameters):
if repeal_in_effect(parameters, period):
return 0
return variable.get_formula(period)(tax_unit, period, parameters)

return type(variable.name, (Variable,), {"formula": formula})

class hi_regular_exemptions(Variable):
value_type = float
entity = TaxUnit
Expand Down Expand Up @@ -68,12 +81,15 @@ class mi_personal_exemptions(Variable):

def formula(tax_unit, period, parameters):
p = parameters(period).gov.states.mi.tax.income.exemptions

# Personal Exemptions & Stillborn Exemptions
count = (
"head_spouse_count"
if repeal_in_effect(parameters, period)
else "tax_unit_size"
)
exemptions = add(
tax_unit,
period,
["head_spouse_count", "tax_unit_stillborn_children"],
[count, "tax_unit_stillborn_children"],
)
return exemptions * p.personal

Expand Down Expand Up @@ -335,7 +351,12 @@ class in_base_exemptions(Variable):

def formula(tax_unit, period, parameters):
p = parameters(period).gov.states["in"].tax.income.exemptions
return tax_unit("head_spouse_count", period) * p.base.amount
count = (
"head_spouse_count"
if repeal_in_effect(parameters, period)
else "tax_unit_size"
)
return tax_unit(count, period) * p.base.amount

class ia_exemption_credit(Variable):
value_type = float
Expand Down Expand Up @@ -421,7 +442,16 @@ def formula(tax_unit, period, parameters):
exempt_status.personal_exemption_added[filing_status]
* tax.exemptions.personal[filing_status]
)
return exempt_status.base[filing_status] + personal_exemptions_added
threshold = exempt_status.base[filing_status] + personal_exemptions_added
if repeal_in_effect(parameters, period):
return threshold
dependents = tax_unit("tax_unit_dependents", period)
return (
threshold
+ exempt_status.dependent_exemption_added[filing_status]
* dependents
* tax.exemptions.dependent
)

class wi_base_exemption(Variable):
value_type = float
Expand All @@ -447,7 +477,7 @@ def formula(tax_unit, period, parameters):
)
return own_exemptions * p.exemption.base

class de_personal_credit(Variable):
class de_personal_credit_potential(Variable):
value_type = float
entity = TaxUnit
label = "Delaware personal credit"
Expand All @@ -458,8 +488,12 @@ class de_personal_credit(Variable):

def formula(tax_unit, period, parameters):
p = parameters(period).gov.states.de.tax.income.credits
head_spouse_count = tax_unit("head_spouse_count", period)
return p.personal_credits.personal * head_spouse_count
count = (
"head_spouse_count_not_dependent_elsewhere"
if repeal_in_effect(parameters, period)
else "exemptions_count"
)
return p.personal_credits.personal * tax_unit(count, period)

class ky_family_size_tax_credit_threshold(Variable):
value_type = float
Expand Down Expand Up @@ -514,6 +548,10 @@ def formula(tax_unit, period, parameters):

class reform(Reform):
def apply(self):
if activate:
self.parameters.gov.contrib.repeal_state_dependent_exemptions.in_effect.update(
value=True
)
self.neutralize_variable("al_dependent_exemption")
self.neutralize_variable("il_dependent_exemption")
self.neutralize_variable("la_dependents_exemption")
Expand All @@ -530,6 +568,14 @@ def apply(self):
self.neutralize_variable("ar_personal_credit_dependent")
self.neutralize_variable("id_ctc")
self.neutralize_variable("me_dependent_exemption_credit")
for name in (
"de_dependent_personal_credit_units",
"mi_dependent_exemptions",
"ma_part_b_dependent_exemption",
"in_additional_exemptions",
"in_adoption_exemption",
):
self.update_variable(repeal_dependent_amount(self.get_variable(name)))
self.update_variable(hi_regular_exemptions)
self.update_variable(md_total_personal_exemptions)
self.update_variable(mi_personal_exemptions)
Expand All @@ -547,7 +593,7 @@ def apply(self):
self.update_variable(ma_income_tax_exemption_threshold)
self.update_variable(wi_base_exemption)
self.update_variable(ia_exemption_credit)
self.update_variable(de_personal_credit)
self.update_variable(de_personal_credit_potential)
self.update_variable(ky_family_size_tax_credit_threshold)
self.update_variable(ok_child_care_child_tax_credit)

Expand All @@ -558,7 +604,7 @@ def create_repeal_state_dependent_exemptions_reform(
parameters, period, bypass: bool = False
):
if bypass:
return create_repeal_state_dependent_exemptions()
return create_repeal_state_dependent_exemptions(activate=True)

p = parameters.gov.contrib.repeal_state_dependent_exemptions

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ class ma_part_b_taxable_income_exemption(Variable):
defined_for = StateCode.MA

def formula(tax_unit, period, parameters):
tax = parameters(period).gov.states.ma.tax.income
pc = parameters(period).gov.contrib.states.ma.dependent_exemption
gov = parameters(period).gov
tax = gov.states.ma.tax.income
pc = gov.contrib.states.ma.dependent_exemption
person = tax_unit.members
filing_status = tax_unit("ma_filing_status", period)
# (B)(b): Exemptions.
Expand All @@ -37,7 +38,10 @@ def formula(tax_unit, period, parameters):
# is installed for the whole simulation whenever it activates in
# any year of the lookahead window, so this per-period gate prevents
# the reform amount leaking into pre-activation years.
if pc.in_effect:
if (
pc.in_effect
and not gov.contrib.repeal_state_dependent_exemptions.in_effect
):
if pc.age_limit.in_effect:
young = dependent & (age < pc.age_limit.threshold)
else:
Expand All @@ -52,8 +56,7 @@ def formula(tax_unit, period, parameters):
reform_amount * count_young + tax.exemptions.dependent * count_older
)
else:
count_dependents = tax_unit("tax_unit_dependents", period)
dependent_exemption = tax.exemptions.dependent * count_dependents
dependent_exemption = tax_unit("ma_part_b_dependent_exemption", period)
# (4): Medical expense deduction for itemizers.
itemizes = tax_unit("tax_unit_itemizes", period)
federal_medical_expense_deduction = tax_unit(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
baseline.
3. No claimable filer gets a Virginia personal exemption under the repeal,
and no dependent does.

We also compare Delaware credits and tax and Michigan, Massachusetts and
Indiana exemptions against the baseline for the same filers without dependents.
"""

from itertools import product
Expand Down Expand Up @@ -146,6 +149,8 @@ def _situation(units, year, with_dependents=True):
("families", "family"),
):
groups[group][f"{prefix}_{i}"] = {"members": members}
for name, value in unit.get("tax_unit_inputs", {}).items():
groups["tax_units"][f"tax_unit_{i}"][name] = {year: value}
groups["households"][f"household_{i}"] = {
"members": members,
"state_code": {year: unit["state"]},
Expand Down Expand Up @@ -223,3 +228,89 @@ def test_hi_va_repeal_grid(year, repeal_system):
@given(year=st.sampled_from(YEARS), units=st.lists(returns(), min_size=6, max_size=12))
def test_hi_va_repeal_generated_returns(year, units, repeal_system):
check_repeal(units, year, repeal_system)


def _four_state_grid():
adult = {"age": 40, "employment_income": 80_000}
older_adult = {"age": 70, "employment_income": 40_000, "is_blind": True}
low_wage_adult = {"age": 40, "employment_income": 1_000}
veteran = {**adult, "is_service_connected_disabled_veteran": True}
children = [{"age": 5}, {"age": 8}]
stillbirth = {"tax_unit_stillborn_children": 1}
returns = [
("DE", [adult], {}),
("DE", [adult, older_adult], {}),
("DE", [adult, low_wage_adult], {}),
("MI", [veteran], stillbirth),
("MI", [older_adult, veteran], stillbirth),
# Hold the Massachusetts filing status fixed when removing dependents.
("MA", [adult], {"ma_filing_status": "HEAD_OF_HOUSEHOLD"}),
("MA", [adult, older_adult], {"ma_filing_status": "JOINT"}),
("IN", [adult], {}),
("IN", [adult, older_adult], {}),
]
units = []
for state, filers, tax_unit_inputs in returns:
for flags in product(CLAIM_STATES.values(), repeat=len(filers)):
claimable, claimed, exception = zip(*flags)
units.append(
{
"state": state,
"adults": filers,
"dependents": children,
"claimable": claimable,
"claimed": claimed,
"exception": exception,
"tax_unit_inputs": tax_unit_inputs,
}
)
return units


def test_four_state_repeal_matches_baseline_without_dependents(repeal_system):
year = 2025
units = _four_state_grid()
repeal = Simulation(
situation=_situation(units, year), tax_benefit_system=repeal_system
)
baseline = Simulation(situation=_situation(units, year, with_dependents=False))
states = np.array([unit["state"] for unit in units])
tax_unit_outputs = {
"DE": ("de_personal_credit_potential", "de_personal_credit", "de_income_tax"),
"MI": ("mi_personal_exemptions", "mi_exemptions"),
"MA": ("ma_part_b_taxable_income_exemption",),
"IN": ("in_additional_exemptions", "in_exemptions"),
}
for state, outputs in tax_unit_outputs.items():
own_state = states == state
assert own_state.any(), state
for name in outputs:
np.testing.assert_allclose(
_calc(repeal, name, year)[own_state],
_calc(baseline, name, year)[own_state],
atol=TOLERANCE,
rtol=0,
equal_nan=False,
err_msg=name,
)

# The two situations retain the filers in the same order.
de_repeal = (
repeal.calculate("state_code", year, map_to="person", decode_enums=True) == "DE"
)
de_baseline = (
baseline.calculate("state_code", year, map_to="person", decode_enums=True)
== "DE"
)
assert de_repeal.any() and de_baseline.any()
filer = _calc(repeal, "is_tax_unit_head_or_spouse", year) > 0
credit = _calc(repeal, "de_personal_credit_indv", year)
np.testing.assert_allclose(
credit[de_repeal & filer],
_calc(baseline, "de_personal_credit_indv", year)[de_baseline],
atol=TOLERANCE,
rtol=0,
equal_nan=False,
err_msg="de_personal_credit_indv",
)
assert not credit[de_repeal & ~filer].any()
Loading
Loading