diff --git a/changelog.d/claimable-filer-co-ct-il-in.fixed.md b/changelog.d/claimable-filer-co-ct-il-in.fixed.md new file mode 100644 index 00000000000..de24f239ddc --- /dev/null +++ b/changelog.d/claimable-filer-co-ct-il-in.fixed.md @@ -0,0 +1 @@ +Corrected filer dependency and eligibility rules in Colorado, Connecticut, Illinois, and Indiana, including Colorado’s EITC expansion dates and Indiana’s separate-filer spouse exemption. diff --git a/policyengine_us/parameters/gov/states/co/tax/income/credits/eitc/itin_expansion_in_effect.yaml b/policyengine_us/parameters/gov/states/co/tax/income/credits/eitc/itin_expansion_in_effect.yaml new file mode 100644 index 00000000000..404a20c2645 --- /dev/null +++ b/policyengine_us/parameters/gov/states/co/tax/income/credits/eitc/itin_expansion_in_effect.yaml @@ -0,0 +1,11 @@ +description: Colorado waives the work-valid Social Security number requirement for the Earned Income Tax Credit if this is true. +values: + 2015-01-01: false + 2020-01-01: true +metadata: + unit: bool + period: year + label: Colorado EITC identification waiver in effect + reference: + - title: C.R.S. 39-22-123.5(2.5)(a)(I) + href: https://leg.colorado.gov/sites/default/files/2023a_1112_signed.pdf#page=2 diff --git a/policyengine_us/parameters/gov/states/co/tax/income/credits/eitc/under_25_expansion/in_effect.yaml b/policyengine_us/parameters/gov/states/co/tax/income/credits/eitc/under_25_expansion/in_effect.yaml new file mode 100644 index 00000000000..1256e7098d8 --- /dev/null +++ b/policyengine_us/parameters/gov/states/co/tax/income/credits/eitc/under_25_expansion/in_effect.yaml @@ -0,0 +1,11 @@ +description: Colorado extends the Earned Income Tax Credit to certain filers under 25 without qualifying children if this is true. +values: + 2015-01-01: false + 2022-01-01: true +metadata: + unit: bool + period: year + label: Colorado EITC younger-filer expansion in effect + reference: + - title: C.R.S. 39-22-123.5(2.7)(a) + href: https://leg.colorado.gov/sites/default/files/2021a_1311_signed.pdf#page=9 diff --git a/policyengine_us/parameters/gov/states/ct/tax/income/credits/property_tax/age_threshold.yaml b/policyengine_us/parameters/gov/states/ct/tax/income/credits/property_tax/age_threshold.yaml index 8e54b466862..7f19b670dd0 100644 --- a/policyengine_us/parameters/gov/states/ct/tax/income/credits/property_tax/age_threshold.yaml +++ b/policyengine_us/parameters/gov/states/ct/tax/income/credits/property_tax/age_threshold.yaml @@ -1,5 +1,6 @@ description: Connecticut limits its property tax credit to filers at or above this age. values: + 2015-01-01: 0 2017-01-01: 65 2022-01-01: 0 metadata: @@ -9,6 +10,8 @@ metadata: reference: - title: Connecticut General Statutes, Chapter 229, Sec. 12-704c, (b) (2) href: https://www.cga.ct.gov/current/pub/chap_229.htm#sec_12-704c + - title: Connecticut Department of Revenue Services, 2022 Legislative Summary, Property tax credit + href: https://portal.ct.gov/drs/legislative-summaries/2022-legislative-updates/legislative-summary - title: 2025 Form CT-1040 Connecticut Resident Income Tax Return Instructions href: https://portal.ct.gov/-/media/drs/forms/2025/income/2025-ct-1040-instructions_1225.pdf#page=26 - title: 2024 Form CT-1040 Connecticut Resident Income Tax Return Instructions diff --git a/policyengine_us/reforms/states/il/dependent_exemption/il_dependent_exemption_reform.py b/policyengine_us/reforms/states/il/dependent_exemption/il_dependent_exemption_reform.py index 14eb27b83dd..2fe57754e54 100644 --- a/policyengine_us/reforms/states/il/dependent_exemption/il_dependent_exemption_reform.py +++ b/policyengine_us/reforms/states/il/dependent_exemption/il_dependent_exemption_reform.py @@ -14,7 +14,13 @@ class il_dependent_exemption(Variable): def formula(tax_unit, period, parameters): p = parameters(period).gov.contrib.states.il.dependent_exemption person = tax_unit.members - is_dependent = person("is_tax_unit_dependent", period) + # A return on which the filer (or, if joint, either spouse) can be + # claimed as a dependent has no dependents (IRC 152(b)(1)), as in + # the baseline formula. + filer_is_dependent = person.tax_unit( + "head_or_spouse_is_dependent_elsewhere_without_filing_exception", period + ) + is_dependent = person("is_tax_unit_dependent", period) & ~filer_is_dependent # Age gate: when in effect, restrict the exemption to dependents # under the chosen age; otherwise every dependent qualifies, # matching the baseline tax_unit_dependents count. diff --git a/policyengine_us/reforms/states/in/dependent_exemption/in_dependent_exemption_reform.py b/policyengine_us/reforms/states/in/dependent_exemption/in_dependent_exemption_reform.py index 617aafcb8ce..d17e820b6c0 100644 --- a/policyengine_us/reforms/states/in/dependent_exemption/in_dependent_exemption_reform.py +++ b/policyengine_us/reforms/states/in/dependent_exemption/in_dependent_exemption_reform.py @@ -15,7 +15,17 @@ def formula(tax_unit, period, parameters): person = tax_unit.members age = person("age", period) - is_dependent = person("is_tax_unit_dependent", period) + # A return on which the filer (or, if joint, either spouse) can be + # claimed as a dependent has no dependents (IRC 152(b)(1)), as in + # the baseline formula. + filer_is_dependent = person.tax_unit( + "head_or_spouse_is_dependent_elsewhere_without_filing_exception", period + ) + is_dependent = ( + person("is_tax_unit_dependent", period) + & ~filer_is_dependent + & ~person("in_is_exempt_separate_spouse", period) + ) # Apply age limit if in effect if p.age_limit.in_effect: @@ -49,7 +59,16 @@ class in_older_dependents_count(Variable): def formula(tax_unit, period, parameters): person = tax_unit.members - is_dependent = person("is_tax_unit_dependent", period) + # Dependents barred by a claimable filer are not moved into the + # personal portion either. + filer_is_dependent = person.tax_unit( + "head_or_spouse_is_dependent_elsewhere_without_filing_exception", period + ) + is_dependent = ( + person("is_tax_unit_dependent", period) + & ~filer_is_dependent + & ~person("in_is_exempt_separate_spouse", period) + ) total_dependents = tax_unit.sum(is_dependent) eligible_dependent_exemptions = tax_unit( "in_eligible_dependents_count", period @@ -71,7 +90,10 @@ def formula(tax_unit, period, parameters): tax_unit_size = tax_unit("tax_unit_size", period) dependents = tax_unit("tax_unit_dependents", period) older_dependents = tax_unit("in_older_dependents_count", period) - personal_count = tax_unit_size - dependents + older_dependents + spouse_allowances = add(tax_unit, period, ["in_is_exempt_separate_spouse"]) + personal_count = ( + tax_unit_size - dependents + spouse_allowances + older_dependents + ) personal_exemption_amount = personal_count * p_base.base.amount # Add separated dependent exemption. diff --git a/policyengine_us/tests/core/test_claimable_filer_co_ct_il_in_invariants.py b/policyengine_us/tests/core/test_claimable_filer_co_ct_il_in_invariants.py new file mode 100644 index 00000000000..779a16c776a --- /dev/null +++ b/policyengine_us/tests/core/test_claimable_filer_co_ct_il_in_invariants.py @@ -0,0 +1,193 @@ +"""Colorado, Connecticut, Illinois and Indiana rules for a filer who can be +claimed as a dependent. + +A return on which the filer, or on a joint return either spouse, can be claimed +as a dependent without the filing exception has no dependents (IRC 152(b)(1)), +so it gets no state dependent exemption or child-based deduction, and a +childless filer who can be claimed gets no state EITC through the ITIN or age +extensions (IRC 32(c)(1)(A)(ii)(III)). Colorado's child credit before 2024 also +requires allowable dependents; from 2024 its child and family credits follow +IRC 152(c) qualifying-child status. Indiana keeps each filer's own $1,000 +exemption; Illinois' child tax credit follows the IRC 152 qualifying child. + +For couples drawn by Hypothesis and a seeded population in these states, with +either, both or neither spouse claimed, claimability drawn separately from +actual claims, and the filing exception: + +1. Swap invariance: each output is the same under either head/spouse + labelling. +2. Monotonicity: marking another filer as claimed never raises the outputs in + MONOTONE (amounts not capped by a tax liability that the claim can raise). +3. Identities: when + `head_or_spouse_is_dependent_elsewhere_without_filing_exception` is true, + the return has no Illinois dependent exemption or Indiana additional + exemption, and its Indiana base exemptions are $1,000 per filer. Colorado's + child tax credit is also zero before 2024; from 2024 qualifying children + remain eligible. Otherwise Illinois and Indiana also count the dependents. + Illinois rebate eligibility follows actual claims, even when both spouses + are claimable. + +Hypothesis batches check 1 and 3; the seeded population checks 1, 2 and 3. +""" + +import numpy as np +import pytest +from hypothesis import HealthCheck, given, settings +from hypothesis import strategies as st + +from policyengine_us.tests.core.test_claimable_filer_federal_invariants import ( + check_monotone, + check_swap, +) +from policyengine_us.tests.core.test_dependent_elsewhere_head_spouse_swap_invariance import ( + CLAIM_PATTERNS, + _calc, + _crafted_cases, + _seeded_couples, + adults, + dependents, +) + +STATES = ["CO", "CT", "IL", "IN"] +YEARS = [2021, 2023, 2025, 2026] +MONOTONE = [ + "co_eitc", + "co_ctc", + "co_low_income_cdcc", + "ct_property_tax_credit_eligible", + "ct_child_tax_rebate", + "il_dependent_exemption", + "il_personal_exemption", + "il_eitc", + "il_ctc", + "il_income_tax_rebate", + "il_income_tax_rebate_eligible", + "in_base_exemptions", + "in_additional_exemptions", + "in_adoption_exemption", +] +OUTPUTS = MONOTONE + ["co_refundable_credits"] + + +@st.composite +def couples(draw): + claimable = draw(st.sampled_from(CLAIM_PATTERNS)) + claimed = tuple(can_claim and draw(st.booleans()) for can_claim in claimable) + return { + "state": draw(st.sampled_from(STATES)), + "adults": [draw(adults()), draw(adults())], + "dependents": draw(st.lists(dependents(), max_size=2)), + "claimed": claimed, + "claimable": claimable, + "exception": tuple( + not is_claimed and draw(st.booleans()) for is_claimed in claimed + ), + } + + +def _claimability_cases(): + # Distinguish claimability from actual claims, and guarantee exception + # coverage without relying on Hypothesis to draw a child in IL or IN. + return [ + { + "state": state, + "adults": [{"age": 26, "employment_income": 1_000}, {"age": 30}], + "dependents": [{"age": 5}], + "claimed": claimed, + "claimable": (True, True), + "exception": exception, + } + for state in STATES + for claimed, exception in ( + ((False, False), (False, False)), + ((False, False), (True, True)), + ((True, True), (False, False)), + ) + ] + + +def _identities(units): + states = np.array([unit["state"] for unit in units]) + + def check(sim, year): + blocked_filer = ( + _calc( + sim, + "head_or_spouse_is_dependent_elsewhere_without_filing_exception", + year, + ) + > 0 + ) + # Each unit is simulated as consecutive copies (labellings or claim + # patterns), in the order of the units. + state = np.repeat(states, len(blocked_filer) // len(units)) + dependent_outputs = ( + "il_dependent_exemption", + "in_additional_exemptions", + ) + if year < 2024: + dependent_outputs += ("co_ctc",) + for name in dependent_outputs: + assert not _calc(sim, name, year)[blocked_filer].any(), ( + f"{name} in {year} is positive on a return with a claimable " + "filer without the filing exception" + ) + dependents_count = _calc(sim, "tax_unit_dependents", year) + allowed_dependents = np.where(blocked_filer, 0, dependents_count) + p = sim.tax_benefit_system.parameters(year).gov.states + mask = state == "IL" + np.testing.assert_array_equal( + _calc(sim, "il_dependent_exemption", year)[mask], + p.il.tax.income.exemption.dependent * allowed_dependents[mask], + err_msg="Illinois must restore dependents under the filing exception", + ) + filers = _calc(sim, "tax_unit_size", year) - dependents_count + mask = state == "IN" + np.testing.assert_array_equal( + _calc(sim, "in_base_exemptions", year)[mask], + p["in"].tax.income.exemptions.base.amount + * (filers + allowed_dependents)[mask], + err_msg="Indiana must restore dependents under the filing exception", + ) + # All generated joint returns have AGI below $400,000. Section + # 212.1(a) excludes actual claims, rather than claimability, and keeps + # the joint return eligible while either spouse is not claimed. + person_is_filer = _calc(sim, "is_tax_unit_head_or_spouse", year) > 0 + actually_claimed = ( + _calc(sim, "claimed_as_dependent_on_another_return", year) > 0 + ) + eligible_filers = sim.populations["tax_unit"].sum( + person_is_filer & ~actually_claimed + ) + mask = state == "IL" + np.testing.assert_array_equal( + _calc(sim, "il_income_tax_rebate_eligible", year)[mask], + eligible_filers[mask] > 0, + err_msg="Illinois rebate eligibility must follow actual claims", + ) + + return check + + +@settings( + max_examples=2, + deadline=None, + derandomize=True, + suppress_health_check=[HealthCheck.too_slow, HealthCheck.data_too_large], +) +@given(st.sampled_from(YEARS), st.lists(couples(), min_size=6, max_size=12)) +def test_co_ct_il_in_claimable_filer_rules_are_label_free(year, units): + check_swap(units, year, OUTPUTS, _identities(units)) + + +@pytest.mark.parametrize("year", YEARS) +def test_co_ct_il_in_claimable_filer_rules_seeded_population(year): + units = _seeded_couples(STATES, per_state=3) + _crafted_cases(STATES) + # Inputs are simulation-wide: make the legacy cases' fallback explicit + # before batching them with the distinct-claimability cases. + swap_units = [ + {**unit, "claimable": unit["claimed"], "exception": (False, False)} + for unit in units + ] + _claimability_cases() + check_swap(swap_units, year, OUTPUTS, _identities(swap_units)) + check_monotone(units, year, MONOTONE, _identities(units)) diff --git a/policyengine_us/tests/policy/baseline/gov/states/co/tax/income/credits/cdcc/co_cdcc.yaml b/policyengine_us/tests/policy/baseline/gov/states/co/tax/income/credits/cdcc/co_cdcc.yaml index 4c9eea9f8b7..3f5834fdfb1 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/co/tax/income/credits/cdcc/co_cdcc.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/co/tax/income/credits/cdcc/co_cdcc.yaml @@ -174,6 +174,149 @@ output: co_cdcc: 0 + +- name: 2025 single filer who can be claimed as a dependent, no Colorado child care credit for a child under 13 + period: 2025 + input: + people: + filer: + age: 30 + employment_income: 50_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + child: + age: 2 + tax_units: + tax_unit: + members: [filer, child] + tax_unit_childcare_expenses: 1_000 + households: + household: + members: [filer, child] + state_code: CO + output: + # Already zero through the federal child care credit, which no + # longer counts a child under 13 on such a return. + co_cdcc: 0 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, no Colorado child care credit for a child under 13 (the claimable spouse is the head) + period: 2025 + input: + people: + person_a: + age: 30 + employment_income: 25_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + employment_income: 25_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 2 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + tax_unit_childcare_expenses: 1_000 + households: + household: + members: [person_a, person_b, child] + state_code: CO + output: + co_cdcc: 0 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, no Colorado child care credit for a child under 13 (the claimable spouse is the spouse) + period: 2025 + input: + people: + person_b: + age: 30 + employment_income: 25_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_a: + age: 30 + employment_income: 25_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 2 + tax_units: + tax_unit: + members: [person_b, person_a, child] + filing_status: JOINT + tax_unit_childcare_expenses: 1_000 + households: + household: + members: [person_b, person_a, child] + state_code: CO + output: + co_cdcc: 0 + +- name: 2025 joint return with both spouses claimable as dependents, no Colorado child care credit for a child under 13 + period: 2025 + input: + people: + person_a: + age: 30 + employment_income: 25_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + employment_income: 25_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 2 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + tax_unit_childcare_expenses: 1_000 + households: + household: + members: [person_a, person_b, child] + state_code: CO + output: + co_cdcc: 0 + +- name: 2025 joint return with neither spouse claimable gets the Colorado child care credit for a child under 13 + period: 2025 + input: + people: + person_a: + age: 30 + employment_income: 25_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + employment_income: 25_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 2 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + tax_unit_childcare_expenses: 1_000 + households: + household: + members: [person_a, person_b, child] + state_code: CO + output: + # Federal 20% x 1,000 = 200; Colorado 50% match = 100. + co_cdcc: 100 + # Without itemization branching, co_cdcc reaches CCAP through the federal CDCC # and child care expenses. For January to September 2015, CCAP once read its # parameters at 2014-10-01 and raised ParameterNotFoundError. diff --git a/policyengine_us/tests/policy/baseline/gov/states/co/tax/income/credits/cdcc/co_low_income_cdcc.yaml b/policyengine_us/tests/policy/baseline/gov/states/co/tax/income/credits/cdcc/co_low_income_cdcc.yaml index 39d720d75f6..f2bc65babc5 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/co/tax/income/credits/cdcc/co_low_income_cdcc.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/co/tax/income/credits/cdcc/co_low_income_cdcc.yaml @@ -219,3 +219,327 @@ members: [head, spouse, child_1] output: co_low_income_cdcc: 0 + + +- name: 2025 single filer who can be claimed as a dependent, no Colorado low-income child care credit + period: 2025 + input: + people: + filer: + age: 25 + employment_income: 10_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + child: + age: 3 + tax_units: + tax_unit: + members: [filer, child] + tax_unit_childcare_expenses: 1_000 + households: + household: + members: [filer, child] + state_code: CO + output: + # Only the federal liability condition is waived; the child must + # still be the taxpayer's dependent under 13 (IRC 152(b)(1)). + co_low_income_cdcc: 0 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, no Colorado low-income child care credit (the claimable spouse is the head) + period: 2025 + input: + people: + person_a: + age: 25 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 25 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 3 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + tax_unit_childcare_expenses: 1_000 + households: + household: + members: [person_a, person_b, child] + state_code: CO + output: + co_low_income_cdcc: 0 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, no Colorado low-income child care credit (the claimable spouse is the spouse) + period: 2025 + input: + people: + person_b: + age: 25 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_a: + age: 25 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 3 + tax_units: + tax_unit: + members: [person_b, person_a, child] + filing_status: JOINT + tax_unit_childcare_expenses: 1_000 + households: + household: + members: [person_b, person_a, child] + state_code: CO + output: + co_low_income_cdcc: 0 + +- name: 2025 joint return with both spouses claimable as dependents, no Colorado low-income child care credit + period: 2025 + input: + people: + person_a: + age: 25 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 25 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 3 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + tax_unit_childcare_expenses: 1_000 + households: + household: + members: [person_a, person_b, child] + state_code: CO + output: + co_low_income_cdcc: 0 + +- name: 2025 joint return with neither spouse claimable gets the Colorado low-income child care credit + period: 2025 + input: + people: + person_a: + age: 25 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 25 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 3 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + tax_unit_childcare_expenses: 1_000 + households: + household: + members: [person_a, person_b, child] + state_code: CO + output: + # No federal liability at AGI 10,000: + # min(0.25 x min(1,000, 5,000), 500) = 250. + co_low_income_cdcc: 250 + +- name: 2025 two returns in one household, only the return whose filer can be claimed loses the low-income child care credit + period: 2025 + input: + people: + parent_claimed: + age: 20 + employment_income: 5_000 + claimed_as_dependent_on_another_return: true + child_a: + age: 3 + parent: + age: 30 + employment_income: 5_000 + child_b: + age: 3 + tax_units: + claimed_return: + members: [parent_claimed, child_a] + tax_unit_childcare_expenses: 1_000 + other_return: + members: [parent, child_b] + tax_unit_childcare_expenses: 1_000 + households: + household: + members: [parent_claimed, child_a, parent, child_b] + state_code: CO + output: + # min(0.25 x min(1,000, 5,000), 500) = 250 for the return without a + # claimable filer. + co_low_income_cdcc: [0, 250] + + +- name: 2025 actually claimed filer receives no low-income child care credit for a child incapable of self-care + period: 2025 + input: + people: + filer: + age: 25 + employment_income: 10_000 + is_tax_unit_head: true + claimed_as_dependent_on_another_return: true + child: + age: 10 + is_incapable_of_self_care: true + tax_units: + tax_unit: + members: [filer, child] + tax_unit_childcare_expenses: 1_000 + households: + household: + members: [filer, child] + state_code: CO + output: + # The independent state dependency requirement still applies even though + # IRC 21(b)(1)(B) preserves federal qualifying-person status. + co_low_income_cdcc: 0 + +- name: 2025 claimable but unclaimed filer receives no low-income care credit for an incapable child + period: 2025 + input: + people: + filer: + age: 25 + employment_income: 10_000 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: false + dependent_claimant_filing_exception: false + child: + age: 10 + is_incapable_of_self_care: true + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + tax_unit_childcare_expenses: 1_000 + households: + household: + members: [filer, child] + state_code: CO + output: + # Colorado separately requires an allowable dependent under IRC 152. + co_low_income_cdcc: 0 + +- name: 2025 nonclaimable filer retains the incapable-child care credit + period: 2025 + input: + people: + filer: + age: 25 + employment_income: 10_000 + claimable_as_dependent_on_another_return: false + child: + age: 10 + is_incapable_of_self_care: true + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + tax_unit_childcare_expenses: 1_000 + households: + household: + members: [filer, child] + state_code: CO + output: + # min(1,000 expenses, 10,000 earned income) x 25% = 250. + co_low_income_cdcc: 250 + +- name: 2025 filing exception restores the incapable-child care credit + period: 2025 + input: + people: + filer: + age: 25 + employment_income: 10_000 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: false + dependent_claimant_filing_exception: true + child: + age: 10 + is_incapable_of_self_care: true + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + tax_unit_childcare_expenses: 1_000 + households: + household: + members: [filer, child] + state_code: CO + output: + co_low_income_cdcc: 250 + +- name: 2025 incapable child must independently meet the state qualifying-child test + period: 2025 + input: + people: + filer: + age: 25 + employment_income: 10_000 + child: + age: 10 + is_incapable_of_self_care: true + is_qualifying_child_dependent: false + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + tax_unit_childcare_expenses: 1_000 + households: + household: + members: [filer, child] + state_code: CO + output: + co_low_income_cdcc: 0 + +- name: Colorado low-income child care credit requires federal qualifying-person status + period: 2025 + input: + people: + filer: + age: 25 + employment_income: 10_000 + is_tax_unit_head: true + child: + age: 10 + is_tax_unit_dependent: true + is_cdcc_eligible: false + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + tax_unit_childcare_expenses: 1_000 + households: + household: + members: [filer, child] + state_code: CO + output: + # The federal status override excludes all expenses, so 0 x 25% = 0. + co_low_income_cdcc: 0 diff --git a/policyengine_us/tests/policy/baseline/gov/states/co/tax/income/credits/ctc/co_ctc.yaml b/policyengine_us/tests/policy/baseline/gov/states/co/tax/income/credits/ctc/co_ctc.yaml index 341508134b7..a474318f93a 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/co/tax/income/credits/ctc/co_ctc.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/co/tax/income/credits/ctc/co_ctc.yaml @@ -431,3 +431,361 @@ age: 5 output: co_ctc: 600 + + +- name: 2025 single filer who can be claimed as a dependent, keeps the Colorado child tax credit + period: 2025 + input: + people: + filer: + age: 25 + employment_income: 10_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + child: + age: 3 + tax_units: + tax_unit: + members: [filer, child] + households: + household: + members: [filer, child] + state_code: CO + output: + # IRC 152(c) qualifying-child status survives filer claimability. + co_ctc: 1_200 + co_ctc_eligible_children_count: 1 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, keeps the Colorado child tax credit (the claimable spouse is the head) + period: 2025 + input: + people: + person_a: + age: 25 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 25 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 3 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: CO + output: + co_ctc: 1_200 + co_ctc_eligible_children_count: 1 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, keeps the Colorado child tax credit (the claimable spouse is the spouse) + period: 2025 + input: + people: + person_b: + age: 25 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_a: + age: 25 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 3 + tax_units: + tax_unit: + members: [person_b, person_a, child] + filing_status: JOINT + households: + household: + members: [person_b, person_a, child] + state_code: CO + output: + co_ctc: 1_200 + co_ctc_eligible_children_count: 1 + +- name: 2025 joint return with both spouses claimable as dependents, keeps the Colorado child tax credit + period: 2025 + input: + people: + person_a: + age: 25 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 25 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 3 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: CO + output: + co_ctc: 1_200 + co_ctc_eligible_children_count: 1 + +- name: 2025 joint return with neither spouse claimable gets the Colorado child tax credit + period: 2025 + input: + people: + person_a: + age: 25 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 25 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 3 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: CO + output: + # Joint AGI 10,000 is below 36,000: 1,200 per child under 6. + co_ctc: 1_200 + co_ctc_eligible_children_count: 1 + +- name: 2023 single filer who can be claimed as a dependent, no Colorado share of the federal child tax credit + period: 2023 + input: + people: + filer: + age: 25 + employment_income: 10_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + child: + age: 3 + tax_units: + tax_unit: + members: [filer, child] + households: + household: + members: [filer, child] + state_code: CO + output: + co_federal_ctc_maximum: 0 + co_ctc: 0 + +- name: 2023 joint return with one spouse who can be claimed as a dependent, no Colorado share of the federal child tax credit (the claimable spouse is the head) + period: 2023 + input: + people: + person_a: + age: 25 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 25 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 3 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: CO + output: + co_federal_ctc_maximum: 0 + co_ctc: 0 + +- name: 2023 joint return with one spouse who can be claimed as a dependent, no Colorado share of the federal child tax credit (the claimable spouse is the spouse) + period: 2023 + input: + people: + person_b: + age: 25 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_a: + age: 25 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 3 + tax_units: + tax_unit: + members: [person_b, person_a, child] + filing_status: JOINT + households: + household: + members: [person_b, person_a, child] + state_code: CO + output: + co_federal_ctc_maximum: 0 + co_ctc: 0 + +- name: 2023 joint return with both spouses claimable as dependents, no Colorado share of the federal child tax credit + period: 2023 + input: + people: + person_a: + age: 25 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 25 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 3 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: CO + output: + co_federal_ctc_maximum: 0 + co_ctc: 0 + +- name: 2023 joint return with neither spouse claimable gets the Colorado share of the federal child tax credit + period: 2023 + input: + people: + person_a: + age: 25 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 25 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 3 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: CO + output: + # The 2023 credit is a share of the federal credit: + # 2,000 for a child under 6. + co_federal_ctc_maximum: 2_000 + # 60% x min(1,600, 15% x (10,000 - 2,500)) = 675. + co_ctc: 675 + + +- name: 2025 single filer who can be claimed keeps the Colorado child tax credit when the would-be claimant meets the filing exception + period: 2025 + input: + people: + filer: + age: 25 + is_tax_unit_head: true + employment_income: 10_000 + claimable_as_dependent_on_another_return: true + dependent_claimant_filing_exception: true + child: + age: 3 + tax_units: + tax_unit: + members: [filer, child] + households: + household: + members: [filer, child] + state_code: CO + output: + co_ctc: 1_200 + +- name: 2024 claimable but unclaimed filer keeps child and family credits for an age-four qualifying child + period: 2024 + input: + people: + filer: + age: 25 + employment_income: 10_000 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: false + dependent_claimant_filing_exception: false + child: + age: 4 + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + households: + household: + members: [filer, child] + state_code: CO + output: + co_ctc: 1_200 + co_ctc_eligible_children_count: 1 + co_family_affordability_credit: [0, 3_200] + +- name: 2023 Colorado claimant filing exception restores the federal child credit basis + period: 2023 + input: + people: + filer: + age: 25 + employment_income: 10_000 + is_tax_unit_head: true + claimable_as_dependent_on_another_return: true + dependent_claimant_filing_exception: true + child: + age: 3 + is_tax_unit_dependent: true + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + households: + household: + members: [filer, child] + state_code: CO + output: + # One child x 2,000 federal maximum. 60% x min(1,600, 15% x (10,000 - 2,500)) = 675. + co_federal_ctc_maximum: 2_000 + co_ctc: 675 diff --git a/policyengine_us/tests/policy/baseline/gov/states/co/tax/income/credits/eitc/co_eitc.yaml b/policyengine_us/tests/policy/baseline/gov/states/co/tax/income/credits/eitc/co_eitc.yaml index adc94e37904..60ec5d3cd91 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/co/tax/income/credits/eitc/co_eitc.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/co/tax/income/credits/eitc/co_eitc.yaml @@ -398,6 +398,209 @@ eitc_child_count: 0 co_eitc: 324.5 + +- name: 2025 single filer who can be claimed as a dependent, no Colorado EITC without a qualifying child + period: 2025 + absolute_error_margin: 0.01 + input: + people: + filer: + age: 30 + employment_income: 10_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [filer] + spm_units: + spm_unit: + members: [filer] + households: + household: + members: [filer] + state_code: CO + output: + # The ITIN and under-25 routes waive identification and age rules + # only; IRC 32(c)(1)(A)(ii)(III) still bars a childless filer who can + # be claimed, and on a joint return either spouse (Publication 596). + co_eitc: 0 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, no Colorado EITC without a qualifying child (the claimable spouse is the head) + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + spm_units: + spm_unit: + members: [person_a, person_b] + households: + household: + members: [person_a, person_b] + state_code: CO + output: + co_eitc: 0 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, no Colorado EITC without a qualifying child (the claimable spouse is the spouse) + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [person_b, person_a] + filing_status: JOINT + spm_units: + spm_unit: + members: [person_b, person_a] + households: + household: + members: [person_b, person_a] + state_code: CO + output: + co_eitc: 0 + +- name: 2025 joint return with both spouses claimable as dependents, no Colorado EITC without a qualifying child + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + spm_units: + spm_unit: + members: [person_a, person_b] + households: + household: + members: [person_a, person_b] + state_code: CO + output: + co_eitc: 0 + +- name: 2025 joint return with neither spouse claimable gets the Colorado EITC without a qualifying child + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + spm_units: + spm_unit: + members: [person_a, person_b] + households: + household: + members: [person_a, person_b] + state_code: CO + output: + # min(0.0765 x 10,000, 649) x 50% = 324.5 + co_eitc: 324.5 + +- name: 2025 single filer aged 19 who can be claimed as a dependent gets no Colorado EITC through the under-25 route + period: 2025 + absolute_error_margin: 0.01 + input: + people: + filer: + age: 19 + employment_income: 10_000 + is_tax_unit_head: true + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [filer] + filing_status: SINGLE + spm_units: + spm_unit: + members: [filer] + households: + household: + members: [filer] + state_code: CO + output: + # Without the claim this filer gets 324.5 (649 x 50%). + co_eitc: 0 + +- name: 2025 Colorado filer who is another taxpayer's qualifying child gets no EITC + period: 2025 + absolute_error_margin: 0.01 + input: + people: + filer: + age: 20 + employment_income: 10_000 + is_tax_unit_head: true + is_full_time_student: true + is_eitc_qualifying_child_elsewhere: true + claimed_as_dependent_on_another_return: true + child: + age: 5 + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + spm_units: + spm_unit: + members: [filer, child] + households: + household: + members: [filer, child] + state_code: CO + output: + # The Rule 10 bar overrides 10,000 x 34% x 50% = 1,700. + co_eitc: 0 + - name: Colorado under-25 EITC nets a spouse's self-employment loss (50% x 7.65% x 6,000) period: 2023 absolute_error_margin: 0.01 @@ -427,3 +630,201 @@ # wages, so federal earned income is $6,000 (Form 1040 EIC Worksheet B, # line 4b, combines both spouses' amounts on a joint return). co_eitc: 229.5 + +- name: 2025 Colorado qualifying relative with a qualifying child keeps the EITC + period: 2025 + input: + people: + filer: + age: 30 + employment_income: 4_000 + is_tax_unit_head: true + claimed_as_dependent_on_another_return: true + child: + age: 5 + is_tax_unit_dependent: true + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + households: + household: + members: [filer, child] + state_code: CO + output: + # 4,000 x 34% x 50% = 680. The filer is a qualifying relative. + co_eitc: 680 + +- name: 2025 Colorado qualifying child of a refund-only claimant keeps the EITC + period: 2025 + input: + people: + filer: + age: 20 + employment_income: 10_000 + is_tax_unit_head: true + is_full_time_student: true + claimable_as_dependent_on_another_return: true + dependent_claimant_filing_exception: true + is_eitc_qualifying_child_elsewhere: true + eitc_qualifying_child_claimant_filing_exception: true + ssn_card_type: OTHER_NON_CITIZEN + has_tin: true + child: + age: 5 + is_tax_unit_dependent: true + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + households: + household: + members: [filer, child] + state_code: CO + output: + # The filing exception restores 10,000 x 34% x 50% = 1,700. + co_eitc: 1_700 + +- name: 2025 Colorado 64.5-year-old ITIN filer meets the childless age test + period: 2025 + absolute_error_margin: 0.01 + input: + people: + filer: + age: 64.5 + employment_income: 1_000 + is_tax_unit_head: true + ssn_card_type: OTHER_NON_CITIZEN + has_tin: true + claimable_as_dependent_on_another_return: true + dependent_claimant_filing_exception: true + tax_units: + tax_unit: + members: [filer] + filing_status: SINGLE + households: + household: + members: [filer] + state_code: CO + output: + # Age 64 is under 65. With the filing exception, 1,000 x 7.65% x 50% = 38.25. + co_eitc: 38.25 + +- name: 2025 Colorado 24.5-year-old filer meets the younger-filer age test + period: 2025 + absolute_error_margin: 0.01 + input: + people: + filer: + age: 24.5 + employment_income: 1_000 + is_tax_unit_head: true + claimable_as_dependent_on_another_return: true + dependent_claimant_filing_exception: true + tax_units: + tax_unit: + members: [filer] + filing_status: SINGLE + households: + household: + members: [filer] + state_code: CO + output: + # Age 24 is under 25. With the filing exception, 1,000 x 7.65% x 50% = 38.25. + co_eitc: 38.25 + +- name: Colorado ITIN filer can be barred by Rule 10 even without a dependent claim + period: 2025 + input: + people: + filer: + age: 20 + employment_income: 10_000 + is_full_time_student: true + has_tin: true + ssn_card_type: OTHER_NON_CITIZEN + is_eitc_qualifying_child_elsewhere: true + child: + age: 5 + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + households: + household: + members: [filer, child] + state_code: CO + output: + # No actual dependent claim is needed to bar 10,000 x 34% x 50% = 1,700. + co_eitc: 0 + +- name: 2019 Colorado younger filer before expansion + period: 2019 + absolute_error_margin: 0.01 + input: + state_code: CO + age: 24.5 + employment_income: 1_000 + filing_status: SINGLE + ssn_card_type: CITIZEN + output: + eitc: 0 + # The expansion is unavailable, so the state matches $0 of federal EITC. + co_eitc: 0 + +- name: 2019 Colorado ITIN filer before expansion + period: 2019 + absolute_error_margin: 0.01 + input: + state_code: CO + age: 64.5 + employment_income: 1_000 + filing_status: SINGLE + ssn_card_type: OTHER_NON_CITIZEN + has_tin: true + output: + eitc: 0 + # The expansion is unavailable, so the state matches $0 of federal EITC. + co_eitc: 0 + +- name: 2020 Colorado ITIN filer qualifies when the SSN waiver starts + period: 2020 + absolute_error_margin: 0.01 + input: + state_code: CO + age: 64.5 + employment_income: 1_000 + filing_status: SINGLE + ssn_card_type: OTHER_NON_CITIZEN + has_tin: true + output: + eitc: 0 + # Completed age 64 qualifies: 1,000 x 7.65% x 10% = 7.65. + co_eitc: 7.65 + +- name: 2020 Colorado younger filer still waits for the age expansion + period: 2020 + input: + state_code: CO + age: 24.5 + employment_income: 1_000 + filing_status: SINGLE + ssn_card_type: CITIZEN + output: + eitc: 0 + # The SSN waiver does not change the age test. The match on $0 is $0. + co_eitc: 0 + +- name: 2022 Colorado younger filer qualifies when the age expansion starts + period: 2022 + absolute_error_margin: 0.01 + input: + state_code: CO + age: 24.5 + employment_income: 1_000 + filing_status: SINGLE + ssn_card_type: CITIZEN + output: + eitc: 0 + # Completed age 24 qualifies: 1,000 x 7.65% x 20% = 15.30. + co_eitc: 15.30 diff --git a/policyengine_us/tests/policy/baseline/gov/states/co/tax/income/credits/family_affordability/co_family_affordability_credit.yaml b/policyengine_us/tests/policy/baseline/gov/states/co/tax/income/credits/family_affordability/co_family_affordability_credit.yaml index 326e39a3966..1c3b1b1f211 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/co/tax/income/credits/family_affordability/co_family_affordability_credit.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/co/tax/income/credits/family_affordability/co_family_affordability_credit.yaml @@ -119,6 +119,169 @@ co_family_affordability_credit: [0, 0, 0] co_refundable_credits: 0 + +- name: 2025 single filer who can be claimed as a dependent, keeps the Colorado family affordability credit + period: 2025 + input: + people: + filer: + age: 25 + employment_income: 10_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + child: + age: 3 + tax_units: + tax_unit: + members: [filer, child] + households: + household: + members: [filer, child] + state_code: CO + output: + # IRC 152(c) qualifying-child status survives filer claimability. + co_family_affordability_credit: [0, 3_273] + +- name: 2025 joint return with one spouse who can be claimed as a dependent, keeps the Colorado family affordability credit (the claimable spouse is the head) + period: 2025 + input: + people: + person_a: + age: 25 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 25 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 3 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: CO + output: + co_family_affordability_credit: [0, 0, 3_273] + +- name: 2025 joint return with one spouse who can be claimed as a dependent, keeps the Colorado family affordability credit (the claimable spouse is the spouse) + period: 2025 + input: + people: + person_b: + age: 25 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_a: + age: 25 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 3 + tax_units: + tax_unit: + members: [person_b, person_a, child] + filing_status: JOINT + households: + household: + members: [person_b, person_a, child] + state_code: CO + output: + co_family_affordability_credit: [0, 0, 3_273] + +- name: 2025 joint return with both spouses claimable as dependents, keeps the Colorado family affordability credit + period: 2025 + input: + people: + person_a: + age: 25 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 25 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 3 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: CO + output: + co_family_affordability_credit: [0, 0, 3_273] + +- name: 2025 joint return with neither spouse claimable gets the Colorado family affordability credit + period: 2025 + input: + people: + person_a: + age: 25 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 25 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 3 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: CO + output: + # AGI 10,000 is below the 25,000 joint reduction + # threshold; child under 6: 3,273. + co_family_affordability_credit: [0, 0, 3_273] + +- name: 2025 claimable but unclaimed filer keeps child and family credits for an age-four qualifying child + period: 2025 + input: + people: + filer: + age: 25 + employment_income: 10_000 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: false + dependent_claimant_filing_exception: false + child: + age: 4 + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + households: + household: + members: [filer, child] + state_code: CO + output: + co_ctc: 1_200 + co_ctc_eligible_children_count: 1 + co_family_affordability_credit: [0, 3_273] + - name: Colorado family affordability credit in 2025 period: 2025 input: diff --git a/policyengine_us/tests/policy/baseline/gov/states/ct/tax/income/credits/eitc/ct_eitc.yaml b/policyengine_us/tests/policy/baseline/gov/states/ct/tax/income/credits/eitc/ct_eitc.yaml index 73ed1c6c2d9..b33b159b12a 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/ct/tax/income/credits/eitc/ct_eitc.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/ct/tax/income/credits/eitc/ct_eitc.yaml @@ -125,3 +125,150 @@ ct_eitc: 0 # Regression test: federal EITC and a qualifying child are computed from # household inputs, but the CT bonus should not survive a zero CT match. + + +- name: 2025 single filer who can be claimed as a dependent, no Connecticut EITC without a qualifying child + period: 2025 + absolute_error_margin: 0.01 + input: + people: + filer: + age: 30 + employment_income: 1_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [filer] + spm_units: + spm_unit: + members: [filer] + households: + household: + members: [filer] + state_code: CT + output: + # Already zero through the federal EITC (IRC 32(c)(1)(A)(ii)(III)). + ct_eitc: 0 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, no Connecticut EITC without a qualifying child (the claimable spouse is the head) + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person_a: + age: 30 + employment_income: 500 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + employment_income: 500 + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + spm_units: + spm_unit: + members: [person_a, person_b] + households: + household: + members: [person_a, person_b] + state_code: CT + output: + ct_eitc: 0 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, no Connecticut EITC without a qualifying child (the claimable spouse is the spouse) + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person_b: + age: 30 + employment_income: 500 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_a: + age: 30 + employment_income: 500 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [person_b, person_a] + filing_status: JOINT + spm_units: + spm_unit: + members: [person_b, person_a] + households: + household: + members: [person_b, person_a] + state_code: CT + output: + ct_eitc: 0 + +- name: 2025 joint return with both spouses claimable as dependents, no Connecticut EITC without a qualifying child + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person_a: + age: 30 + employment_income: 500 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + employment_income: 500 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + spm_units: + spm_unit: + members: [person_a, person_b] + households: + household: + members: [person_a, person_b] + state_code: CT + output: + ct_eitc: 0 + +- name: 2025 joint return with neither spouse claimable gets the Connecticut EITC without a qualifying child + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person_a: + age: 30 + employment_income: 500 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + employment_income: 500 + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + spm_units: + spm_unit: + members: [person_a, person_b] + households: + household: + members: [person_a, person_b] + state_code: CT + output: + # 0.0765 x 1,000 = 76.50 x 40% = 30.60 + ct_eitc: 30.6 diff --git a/policyengine_us/tests/policy/baseline/gov/states/ct/tax/income/credits/property_tax/ct_property_tax_credit_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/ct/tax/income/credits/property_tax/ct_property_tax_credit_eligible.yaml index 755030c8593..5f85c463b65 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/ct/tax/income/credits/property_tax/ct_property_tax_credit_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/ct/tax/income/credits/property_tax/ct_property_tax_credit_eligible.yaml @@ -51,3 +51,281 @@ greater_age_head_spouse: 64 output: ct_property_tax_credit_eligible: true + + +- name: 2021 single filer who can be claimed as a dependent, no 2021 property tax credit through the dependent route + period: 2021 + input: + people: + filer: + age: 30 + employment_income: 10_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + child: + age: 5 + tax_units: + tax_unit: + members: [filer, child] + households: + household: + members: [filer, child] + state_code: CT + output: + # C.G.S. 12-704c(b)(2): under 65, only by validly claiming + # a dependent; a return with a claimable filer has none. + ct_property_tax_credit_eligible: false + +- name: 2021 joint return with one spouse who can be claimed as a dependent, no 2021 property tax credit through the dependent route (the claimable spouse is the head) + period: 2021 + input: + people: + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: CT + output: + ct_property_tax_credit_eligible: false + +- name: 2021 joint return with one spouse who can be claimed as a dependent, no 2021 property tax credit through the dependent route (the claimable spouse is the spouse) + period: 2021 + input: + people: + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_b, person_a, child] + filing_status: JOINT + households: + household: + members: [person_b, person_a, child] + state_code: CT + output: + ct_property_tax_credit_eligible: false + +- name: 2021 joint return with both spouses claimable as dependents, no 2021 property tax credit through the dependent route + period: 2021 + input: + people: + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: CT + output: + ct_property_tax_credit_eligible: false + +- name: 2021 joint return with neither spouse claimable is eligible for the property tax credit through the dependent route + period: 2021 + input: + people: + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: CT + output: + ct_property_tax_credit_eligible: true + +- name: 2021 single filer aged 65 who can be claimed as a dependent qualifies for the property tax credit by age + period: 2021 + input: + people: + filer: + age: 65 + is_tax_unit_head: true + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [filer] + households: + household: + members: [filer] + state_code: CT + output: + ct_property_tax_credit_eligible: true + +- name: 2022 single filer who can be claimed as a dependent qualifies for the property tax credit with no age or dependent test + period: 2022 + input: + people: + filer: + age: 30 + is_tax_unit_head: true + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [filer] + households: + household: + members: [filer] + state_code: CT + output: + ct_property_tax_credit_eligible: true + +- name: 2015 Connecticut claimable filer under 65 qualifies for the property tax credit + period: 2015 + input: + people: + filer: + age: 20 + employment_income: 25_000 + is_tax_unit_head: true + real_estate_taxes: 300 + claimable_as_dependent_on_another_return: true + child: + age: 5 + is_tax_unit_dependent: true + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + households: + household: + members: [filer, child] + state_code: CT + output: + # The age and dependent restriction has not started. min(300, 300) = 300. + ct_property_tax_credit_eligible: true + ct_property_tax_credit_potential: 300 + +- name: 2016 Connecticut claimable filer under 65 qualifies for the property tax credit + period: 2016 + input: + people: + filer: + age: 20 + employment_income: 25_000 + is_tax_unit_head: true + real_estate_taxes: 300 + claimable_as_dependent_on_another_return: true + child: + age: 5 + is_tax_unit_dependent: true + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + households: + household: + members: [filer, child] + state_code: CT + output: + # The age and dependent restriction has not started. min(300, 200) = 200. + ct_property_tax_credit_eligible: true + ct_property_tax_credit_potential: 200 + +- name: 2017 Connecticut claimable filer under 65 is barred from the property tax credit + period: 2017 + input: + people: + filer: + age: 20 + employment_income: 25_000 + is_tax_unit_head: true + real_estate_taxes: 300 + claimable_as_dependent_on_another_return: true + child: + age: 5 + is_tax_unit_dependent: true + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + households: + household: + members: [filer, child] + state_code: CT + output: + # The filer is under 65 and cannot claim a dependent, so the credit is 0. + ct_property_tax_credit_eligible: false + ct_property_tax_credit_potential: 0 + +- name: 2021 Connecticut filing exception restores the dependent route + period: 2021 + input: + people: + filer: + age: 20 + employment_income: 25_000 + is_tax_unit_head: true + real_estate_taxes: 300 + claimable_as_dependent_on_another_return: true + dependent_claimant_filing_exception: true + child: + age: 5 + is_tax_unit_dependent: true + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + households: + household: + members: [filer, child] + state_code: CT + output: + # One allowable dependent establishes eligibility. min(300, 200) = 200. + ct_property_tax_credit_eligible: true + ct_property_tax_credit_potential: 200 diff --git a/policyengine_us/tests/policy/baseline/gov/states/ct/tax/income/rebate/ct_child_tax_rebate.yaml b/policyengine_us/tests/policy/baseline/gov/states/ct/tax/income/rebate/ct_child_tax_rebate.yaml index 048f7b445ec..f09fcee00c3 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/ct/tax/income/rebate/ct_child_tax_rebate.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/ct/tax/income/rebate/ct_child_tax_rebate.yaml @@ -814,3 +814,208 @@ # HoH threshold 160,000 -> excess 0 -> no reduction -> 750. Pins the child cap. ct_child_tax_rebate: 750 absolute_error_margin: 0.01 + + +- name: 2021 single filer who can be claimed as a dependent, no 2022 child tax rebate + period: 2021 + input: + people: + filer: + age: 30 + employment_income: 10_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + child: + age: 4 + tax_units: + tax_unit: + members: [filer, child] + households: + household: + members: [filer, child] + state_code: CT + output: + # The child must be validly claimed on the 2021 federal return; + # a return with a claimable filer has no dependents. + ct_child_tax_rebate: 0 + +- name: 2021 joint return with one spouse who can be claimed as a dependent, no 2022 child tax rebate (the claimable spouse is the head) + period: 2021 + input: + people: + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 4 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: CT + output: + ct_child_tax_rebate: 0 + +- name: 2021 joint return with one spouse who can be claimed as a dependent, no 2022 child tax rebate (the claimable spouse is the spouse) + period: 2021 + input: + people: + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 4 + tax_units: + tax_unit: + members: [person_b, person_a, child] + filing_status: JOINT + households: + household: + members: [person_b, person_a, child] + state_code: CT + output: + ct_child_tax_rebate: 0 + +- name: 2021 joint return with both spouses claimable as dependents, no 2022 child tax rebate + period: 2021 + input: + people: + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 4 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: CT + output: + ct_child_tax_rebate: 0 + +- name: 2021 joint return with neither spouse claimable gets the 2022 child tax rebate + period: 2021 + input: + people: + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 4 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: CT + output: + ct_child_tax_rebate: 250 + +- name: Connecticut child age 18.5 qualifies for the 2022 rebate + period: 2021 + input: + people: + filer: + age: 40 + employment_income: 25_000 + is_tax_unit_head: true + child: + age: 18.5 + is_tax_unit_dependent: true + tax_units: + tax_unit: + members: [filer, child] + households: + household: + members: [filer, child] + state_code: CT + output: + # One child under 19 x 250 with no income reduction. + ct_child_tax_rebate: 250 + +- name: Connecticut child age 19 is too old for the 2022 rebate + period: 2021 + input: + people: + filer: + age: 40 + employment_income: 25_000 + is_tax_unit_head: true + child: + age: 19 + is_tax_unit_dependent: true + tax_units: + tax_unit: + members: [filer, child] + households: + household: + members: [filer, child] + state_code: CT + output: + # Zero children under 19 x 250 = 0. + ct_child_tax_rebate: 0 + +- name: Connecticut claimant filing exception restores the 2022 child rebate + period: 2021 + input: + people: + filer: + age: 22 + employment_income: 25_000 + is_tax_unit_head: true + claimable_as_dependent_on_another_return: true + dependent_claimant_filing_exception: true + child: + age: 5 + is_tax_unit_dependent: true + tax_units: + tax_unit: + members: [filer, child] + households: + household: + members: [filer, child] + state_code: CT + output: + # The filing exception restores one dependent x 250. + ct_child_tax_rebate: 250 diff --git a/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/credits/il_ctc.yaml b/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/credits/il_ctc.yaml index cdc19f1a707..67aba750cbd 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/credits/il_ctc.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/credits/il_ctc.yaml @@ -130,3 +130,166 @@ # A dependent who is not a 152(c) qualifying child (e.g. qualifying relative) # does not generate the IL CTC. il_ctc: 0 + + +- name: 2025 single filer who can be claimed as a dependent, Illinois child tax credit kept for the filer's own qualifying child + period: 2025 + absolute_error_margin: 0.01 + input: + people: + filer: + age: 20 + employment_income: 1_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + child: + age: 5 + tax_units: + tax_unit: + members: [filer, child] + spm_units: + spm_unit: + members: [filer, child] + households: + household: + members: [filer, child] + state_code: IL + output: + # 35 ILCS 5/244(d) uses the IRC 152 qualifying child, not an + # allowable dependent; the filer keeps the EITC for that child + # (0.34 x 1,000 x 20% = 68), so the credit is 40% x 68 = 27.20. + il_eitc: 68 + il_ctc: 27.2 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, Illinois child tax credit kept for the filer's own qualifying child (the claimable spouse is the head) + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person_a: + age: 20 + employment_income: 500 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 20 + employment_income: 500 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + spm_units: + spm_unit: + members: [person_a, person_b, child] + households: + household: + members: [person_a, person_b, child] + state_code: IL + output: + il_eitc: 68 + il_ctc: 27.2 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, Illinois child tax credit kept for the filer's own qualifying child (the claimable spouse is the spouse) + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person_b: + age: 20 + employment_income: 500 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_a: + age: 20 + employment_income: 500 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_b, person_a, child] + filing_status: JOINT + spm_units: + spm_unit: + members: [person_b, person_a, child] + households: + household: + members: [person_b, person_a, child] + state_code: IL + output: + il_eitc: 68 + il_ctc: 27.2 + +- name: 2025 joint return with both spouses claimable as dependents, Illinois child tax credit kept for the filer's own qualifying child + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person_a: + age: 20 + employment_income: 500 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 20 + employment_income: 500 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + spm_units: + spm_unit: + members: [person_a, person_b, child] + households: + household: + members: [person_a, person_b, child] + state_code: IL + output: + il_eitc: 68 + il_ctc: 27.2 + +- name: 2025 joint return with neither spouse claimable, Illinois child tax credit kept for the filer's own qualifying child + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person_a: + age: 20 + employment_income: 500 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 20 + employment_income: 500 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + spm_units: + spm_unit: + members: [person_a, person_b, child] + households: + household: + members: [person_a, person_b, child] + state_code: IL + output: + il_eitc: 68 + il_ctc: 27.2 diff --git a/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/credits/il_eitc.yaml b/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/credits/il_eitc.yaml index 2d07b31d4a9..a0b47e3ce69 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/credits/il_eitc.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/credits/il_eitc.yaml @@ -349,6 +349,179 @@ # federal-like credit of 649. il_eitc: 129.8 + +- name: 2025 single filer who can be claimed as a dependent, no Illinois EITC without a qualifying child + period: 2025 + absolute_error_margin: 0.01 + input: + people: + filer: + age: 30 + employment_income: 1_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [filer] + spm_units: + spm_unit: + members: [filer] + households: + household: + members: [filer] + state_code: IL + output: + # The age and ITIN extensions keep the IRC 32(c)(1)(A)(ii)(III) + # bar on a childless filer who can be claimed. + il_eitc: 0 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, no Illinois EITC without a qualifying child (the claimable spouse is the head) + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person_a: + age: 30 + employment_income: 500 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + employment_income: 500 + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + spm_units: + spm_unit: + members: [person_a, person_b] + households: + household: + members: [person_a, person_b] + state_code: IL + output: + il_eitc: 0 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, no Illinois EITC without a qualifying child (the claimable spouse is the spouse) + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person_b: + age: 30 + employment_income: 500 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_a: + age: 30 + employment_income: 500 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [person_b, person_a] + filing_status: JOINT + spm_units: + spm_unit: + members: [person_b, person_a] + households: + household: + members: [person_b, person_a] + state_code: IL + output: + il_eitc: 0 + +- name: 2025 joint return with both spouses claimable as dependents, no Illinois EITC without a qualifying child + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person_a: + age: 30 + employment_income: 500 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + employment_income: 500 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + spm_units: + spm_unit: + members: [person_a, person_b] + households: + household: + members: [person_a, person_b] + state_code: IL + output: + il_eitc: 0 + +- name: 2025 joint return with neither spouse claimable gets the Illinois EITC without a qualifying child + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person_a: + age: 30 + employment_income: 500 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + employment_income: 500 + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + spm_units: + spm_unit: + members: [person_a, person_b] + households: + household: + members: [person_a, person_b] + state_code: IL + output: + # 0.0765 x 1,000 = 76.50 x 20% = 15.30 + il_eitc: 15.3 + +- name: 2025 single filer aged 19 who can be claimed as a dependent gets no Illinois EITC through the under-25 extension + period: 2025 + absolute_error_margin: 0.01 + input: + people: + filer: + age: 19 + employment_income: 1_000 + is_tax_unit_head: true + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [filer] + filing_status: SINGLE + spm_units: + spm_unit: + members: [filer] + households: + household: + members: [filer] + state_code: IL + output: + # Without the claim this filer gets 15.30. + il_eitc: 0 + - name: IL EIC nets a spouse's self-employment loss in the phase-out range, 2023 period: 2023 absolute_error_margin: 0.01 @@ -386,3 +559,142 @@ # 5,155.07; IL EIC 20%: 1,031.01. Without netting, earned income would be # 40,000 and the IL EIC 20% x (6,604 - 0.2106 x 11,880) = 820.41. il_eitc: 1_031.01 + +- name: 2025 Illinois filer who is another taxpayer's qualifying child gets no EITC or CTC + period: 2025 + input: + people: + filer: + age: 20 + employment_income: 10_000 + is_tax_unit_head: true + is_full_time_student: true + is_eitc_qualifying_child_elsewhere: true + claimed_as_dependent_on_another_return: true + child: + age: 5 + is_tax_unit_dependent: true + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + households: + household: + members: [filer, child] + state_code: IL + output: + # Rule 10 bars 10,000 x 34% x 20% = 680. The CTC is 0 x 40% = 0. + il_eitc: 0 + il_ctc: 0 + +- name: 2025 Illinois qualifying child of a refund-only claimant keeps the EITC and CTC + period: 2025 + input: + people: + filer: + age: 20 + employment_income: 10_000 + is_tax_unit_head: true + is_full_time_student: true + claimable_as_dependent_on_another_return: true + dependent_claimant_filing_exception: true + is_eitc_qualifying_child_elsewhere: true + eitc_qualifying_child_claimant_filing_exception: true + child: + age: 5 + is_tax_unit_dependent: true + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + households: + household: + members: [filer, child] + state_code: IL + output: + # The exception restores 10,000 x 34% x 20% = 680. The CTC is 680 x 40% = 272. + il_eitc: 680 + il_ctc: 272 + +- name: 2025 Illinois claimable childless filer gets EITC under the claimant filing exception + period: 2025 + absolute_error_margin: 0.01 + input: + people: + filer: + age: 30 + employment_income: 1_000 + is_tax_unit_head: true + claimable_as_dependent_on_another_return: true + dependent_claimant_filing_exception: true + tax_units: + tax_unit: + members: [filer] + filing_status: SINGLE + households: + household: + members: [filer] + state_code: IL + output: + # 1,000 x 7.65% x 20% = 15.30 with the filing exception. + il_eitc: 15.3 + +- name: 2025 Illinois claimable filer whose child has no TIN receives no EITC-based CTC + period: 2025 + input: + people: + filer: + age: 30 + employment_income: 1_000 + is_tax_unit_head: true + claimable_as_dependent_on_another_return: true + child: + age: 5 + is_tax_unit_dependent: true + ssn_card_type: OTHER_NON_CITIZEN + has_tin: false + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + households: + household: + members: [filer, child] + state_code: IL + output: + # No child with a TIN counts for EITC on this return. The EITC is 0 and 0 x 40% = 0. + il_eitc: 0 + il_ctc: 0 + +- name: Illinois EITC Rule 10 claimant is distinct from the dependency claimant + period: 2025 + absolute_error_margin: 0.01 + input: + people: + filer: + age: 20 + employment_income: 4_000 + is_full_time_student: true + is_tax_unit_head: true + claimable_as_dependent_on_another_return: true + dependent_claimant_filing_exception: false + # The parent need not file. The aunt can claim the filer and must file. + is_eitc_qualifying_child_elsewhere: true + eitc_qualifying_child_claimant_filing_exception: true + child: + age: 5 + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + households: + household: + members: [filer, child] + state_code: IL + output: + # Federal EITC: 4,000 x 34% = 1,360. Illinois EITC: 1,360 x 20% = 272. + # The aunt's claimability bars the exemption. The CTC is 272 x 40% = 108.80. + eitc: 1_360 + il_dependent_exemption: 0 + il_eitc: 272 + il_ctc: 108.8 diff --git a/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/credits/il_eitc_pre_2023.yaml b/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/credits/il_eitc_pre_2023.yaml index d3513efdb08..6c4ad8693e1 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/credits/il_eitc_pre_2023.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/credits/il_eitc_pre_2023.yaml @@ -226,3 +226,26 @@ # From 2023 35 ILCS 5/212(b-15) accepts an ITIN. Childless phase-in 7.65% # of 5,000 = 382.50 (below the 2023 maximum of 600); IL EIC 20% = 76.50. il_eitc: 76.5 + +- name: Before the Illinois EITC expansion Rule 10 also bars the matched credit + period: 2022 + input: + people: + filer: + age: 20 + employment_income: 10_000 + is_full_time_student: true + is_eitc_qualifying_child_elsewhere: true + child: + age: 5 + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + households: + household: + members: [filer, child] + state_code: IL + output: + # The allowed EITC base after Rule 10 is 0, so the Illinois match is 0. + il_eitc: 0 diff --git a/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/credits/il_income_tax_rebate.yaml b/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/credits/il_income_tax_rebate.yaml index 815f186e74c..72c59ac92c2 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/credits/il_income_tax_rebate.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/credits/il_income_tax_rebate.yaml @@ -78,6 +78,165 @@ output: il_income_tax_rebate: 300 + +- name: 2021 single filer claimed as a dependent gets no 2022 Illinois income tax rebate + period: 2021 + input: + people: + filer: + age: 30 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + child: + age: 5 + tax_units: + tax_unit: + members: [filer, child] + households: + household: + members: [filer, child] + state_code: IL + output: + # Section 212.1(a): this single taxpayer is claimed as a dependent + # on another return, so the taxpayer receives no rebate. + il_income_tax_rebate_eligible: false + il_income_tax_rebate: 0 + +- name: 2021 joint return with one spouse who can be claimed as a dependent, 2022 Illinois income tax rebate only through a spouse who is not claimed, with no dependent amount (the claimable spouse is the head) + period: 2021 + input: + people: + person_a: + age: 30 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: IL + output: + il_income_tax_rebate_eligible: true + il_income_tax_rebate: 100 + +- name: 2021 joint return with one spouse who can be claimed as a dependent, 2022 Illinois income tax rebate only through a spouse who is not claimed, with no dependent amount (the claimable spouse is the spouse) + period: 2021 + input: + people: + person_b: + age: 30 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_a: + age: 30 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_b, person_a, child] + filing_status: JOINT + households: + household: + members: [person_b, person_a, child] + state_code: IL + output: + il_income_tax_rebate_eligible: true + il_income_tax_rebate: 100 + +- name: 2021 joint return with both spouses claimed as dependents gets no 2022 Illinois income tax rebate + period: 2021 + input: + people: + person_a: + age: 30 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: IL + output: + il_income_tax_rebate_eligible: false + il_income_tax_rebate: 0 + +- name: 2021 joint return with neither spouse claimable gets the 2022 Illinois income tax rebate for both filers and their dependent + period: 2021 + input: + people: + person_a: + age: 30 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: IL + output: + # 100 joint + 100 for the child + il_income_tax_rebate_eligible: true + il_income_tax_rebate: 200 + + +- name: 2021 single filer who can be claimed as a dependent but is not claimed keeps the 2022 rebate, with no dependent amount + period: 2021 + input: + people: + filer: + age: 30 + is_tax_unit_head: true + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: false + child: + age: 5 + tax_units: + tax_unit: + members: [filer, child] + households: + household: + members: [filer, child] + state_code: IL + output: + # Section 212.1(a) bars a taxpayer actually claimed; the + # return still claims no dependent (IRC 152(b)(1)). + il_income_tax_rebate_eligible: true + il_income_tax_rebate: 50 + # Historical guard regression. # Public Act 102-0700: 35 ILCS 5/212.1(a), PDF p131, keys income rebate to 2021; # 35 ILCS 5/208.5 keys the one-time property rebate to the 2021 return. @@ -139,3 +298,28 @@ output: il_income_tax_rebate: [0, 0] il_property_tax_rebate: [0, 0] + +- name: Illinois filing exception restores the per-dependent 2022 rebate + period: 2021 + input: + people: + filer: + age: 30 + employment_income: 10_000 + is_tax_unit_head: true + claimable_as_dependent_on_another_return: true + dependent_claimant_filing_exception: true + child: + age: 5 + is_tax_unit_dependent: true + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + households: + household: + members: [filer, child] + state_code: IL + output: + # An unclaimed filer gets 50 plus 100 for one allowable dependent. + il_income_tax_rebate: 150 diff --git a/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/exemptions/il_dependent_exemption.yaml b/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/exemptions/il_dependent_exemption.yaml index 97d7f756f80..e6c58f41b3c 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/exemptions/il_dependent_exemption.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/exemptions/il_dependent_exemption.yaml @@ -21,3 +21,164 @@ state_code: IL output: il_dependent_exemption: 4_850 + + +- name: 2025 single filer who can be claimed as a dependent, no Illinois dependent exemption + period: 2025 + input: + people: + filer: + age: 30 + employment_income: 10_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + child: + age: 5 + tax_units: + tax_unit: + members: [filer, child] + households: + household: + members: [filer, child] + state_code: IL + output: + # 35 ILCS 5/204(c) counts exemptions allowable under IRC 151; + # a return with a claimable filer has no dependents. + il_dependent_exemption: 0 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, no Illinois dependent exemption (the claimable spouse is the head) + period: 2025 + input: + people: + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: IL + output: + il_dependent_exemption: 0 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, no Illinois dependent exemption (the claimable spouse is the spouse) + period: 2025 + input: + people: + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_b, person_a, child] + filing_status: JOINT + households: + household: + members: [person_b, person_a, child] + state_code: IL + output: + il_dependent_exemption: 0 + +- name: 2025 joint return with both spouses claimable as dependents, no Illinois dependent exemption + period: 2025 + input: + people: + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: IL + output: + il_dependent_exemption: 0 + +- name: 2025 joint return with neither spouse claimable gets the Illinois dependent exemption + period: 2025 + input: + people: + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: IL + output: + il_dependent_exemption: 2_850 + + +- name: 2025 single filer who can be claimed keeps the dependent exemption when the would-be claimant meets the filing exception + period: 2025 + input: + people: + filer: + age: 30 + is_tax_unit_head: true + employment_income: 10_000 + claimable_as_dependent_on_another_return: true + dependent_claimant_filing_exception: true + child: + age: 5 + tax_units: + tax_unit: + members: [filer, child] + households: + household: + members: [filer, child] + state_code: IL + output: + # Publication 501, Dependent Taxpayer Test exception. + il_dependent_exemption: 2_850 diff --git a/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/exemptions/il_personal_exemption.yaml b/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/exemptions/il_personal_exemption.yaml index 1e10a23dfdd..84f560a236a 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/exemptions/il_personal_exemption.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/exemptions/il_personal_exemption.yaml @@ -37,3 +37,105 @@ state_code: IL output: il_personal_exemption: 2_375 + +- name: A claimable but unclaimed 2025 filer retains the basic exemption + period: 2025 + input: + age: 30 + state_code: IL + filing_status: SINGLE + il_base_income: 10_000 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: false + output: + il_personal_exemption: 2_850 + +- name: An actually claimed 2025 filer above the basic amount loses the exemption + period: 2025 + input: + age: 30 + state_code: IL + filing_status: SINGLE + il_base_income: 10_000 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + output: + il_personal_exemption: 0 + +- name: A claimable but unclaimed 2021 filer retains the basic exemption + period: 2021 + input: + age: 30 + state_code: IL + filing_status: SINGLE + il_base_income: 10_000 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: false + output: + il_personal_exemption: 2_375 + +- name: An actually claimed single filer below the basic amount retains one exemption + period: 2025 + input: + age: 30 + state_code: IL + filing_status: SINGLE + il_base_income: 2_849 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + output: + il_personal_exemption: 2_850 + +- name: An actually claimed single filer at the basic amount retains one exemption + period: 2025 + input: + age: 30 + state_code: IL + filing_status: SINGLE + il_base_income: 2_850 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + output: + il_personal_exemption: 2_850 + +- name: An actually claimed single filer above the basic amount loses the exemption + period: 2025 + input: + age: 30 + state_code: IL + filing_status: SINGLE + il_base_income: 2_851 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + output: + il_personal_exemption: 0 + +- name: A claimable but unclaimed filer at the AGI limit keeps total exemptions + period: 2025 + input: + age: 30 + state_code: IL + filing_status: SINGLE + il_base_income: 10_000 + adjusted_gross_income: 250_000 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: false + output: + il_personal_exemption: 2_850 + il_is_exemption_eligible: true + il_total_exemptions: 2_850 + +- name: A claimable but unclaimed filer above the AGI limit loses total exemptions + period: 2025 + input: + age: 30 + state_code: IL + filing_status: SINGLE + il_base_income: 10_000 + adjusted_gross_income: 250_001 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: false + output: + il_personal_exemption: 2_850 + il_is_exemption_eligible: false + il_total_exemptions: 0 diff --git a/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/exemptions/il_personal_exemption_eligibility_status.yaml b/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/exemptions/il_personal_exemption_eligibility_status.yaml index 7b774d9a77f..b887f0b6ac0 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/exemptions/il_personal_exemption_eligibility_status.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/il/tax/income/exemptions/il_personal_exemption_eligibility_status.yaml @@ -1,335 +1,791 @@ -- name: 2024 Joint household, neither claimable elsewhere, base income less than $5,600 +- name: 2024 Joint household, neither claimed elsewhere, base income less than $5,550 period: 2024 input: - filing_status: JOINT - head_is_dependent_elsewhere: false - spouse_is_dependent_elsewhere: false - il_base_income: 2_000 # Less than $2,800 personal exemption. - state_code: IL + people: + head: + age: 30 + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + spouse: + age: 29 + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + il_base_income: 2_000 + households: + household: + members: [head, spouse] + state_code: IL output: il_personal_exemption_eligibility_status: BOTH_ELIGIBLE -- name: 2024 Joint household, neither claimable elsewhere, base income greater than $5,600 +- name: 2024 Joint household, neither claimed elsewhere, base income greater than $5,550 period: 2024 input: - filing_status: JOINT - head_is_dependent_elsewhere: false - spouse_is_dependent_elsewhere: false - il_base_income: 6_000 # More than $2,800 personal exemption. - state_code: IL + people: + head: + age: 30 + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + spouse: + age: 29 + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + il_base_income: 6_000 + households: + household: + members: [head, spouse] + state_code: IL output: il_personal_exemption_eligibility_status: BOTH_ELIGIBLE -- name: 2024 Single household, claimable elsewhere, base income less than $2,800 +- name: 2024 Single household, claimed elsewhere, base income less than $2,775 period: 2024 input: + age: 30 filing_status: SINGLE - head_is_dependent_elsewhere: true - il_base_income: 2_000 # Less than $2,800 personal exemption. + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + il_base_income: 2_000 state_code: IL output: il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE -- name: 2024 Single household, claimable elsewhere, base income greater than $2,800 +- name: 2024 Single household, claimed elsewhere, base income greater than $2,775 period: 2024 input: + age: 30 filing_status: SINGLE - head_is_dependent_elsewhere: true - il_base_income: 6_000 # More than $2,800 personal exemption. + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + il_base_income: 6_000 state_code: IL output: il_personal_exemption_eligibility_status: NOT_ELIGIBLE -- name: 2024 Single household, not claimable elsewhere, base income less than $2,800 +- name: 2024 Single household, not claimed elsewhere, base income less than $2,775 period: 2024 input: + age: 30 filing_status: SINGLE - head_is_dependent_elsewhere: false - il_base_income: 2_000 # Less than $2,800 personal exemption. + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + il_base_income: 2_000 state_code: IL output: il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE -- name: 2024 Single household, not claimable elsewhere, base income greater than $2,800 +- name: 2024 Single household, not claimed elsewhere, base income greater than $2,775 period: 2024 input: + age: 30 filing_status: SINGLE - head_is_dependent_elsewhere: false - il_base_income: 6_000 # More than $2,800 personal exemption. + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + il_base_income: 6_000 state_code: IL output: il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE -- name: 2024 Joint household, both claimable elsewhere, base income less than $5,600 +- name: 2024 Joint household, both claimed elsewhere, base income less than $5,550 period: 2024 input: - filing_status: JOINT - head_is_dependent_elsewhere: true - spouse_is_dependent_elsewhere: true - il_base_income: 2_000 # Less than $2,800 personal exemption. - state_code: IL + people: + head: + age: 30 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + spouse: + age: 29 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + il_base_income: 2_000 + households: + household: + members: [head, spouse] + state_code: IL output: il_personal_exemption_eligibility_status: BOTH_ELIGIBLE -- name: 2024 Joint household, both claimable elsewhere, base income greater than $5,600 +- name: 2024 Joint household, both claimed elsewhere, base income greater than $5,550 period: 2024 input: - filing_status: JOINT - head_is_dependent_elsewhere: true - spouse_is_dependent_elsewhere: true - il_base_income: 6_000 # More than $2,800 personal exemption. - state_code: IL + people: + head: + age: 30 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + spouse: + age: 29 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + il_base_income: 6_000 + households: + household: + members: [head, spouse] + state_code: IL output: - il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE + il_personal_exemption_eligibility_status: NOT_ELIGIBLE -- name: 2024 Joint household, one claimable elsewhere, base income less than $2,800 +- name: 2024 Joint household, one claimed elsewhere, base income less than $2,775 period: 2024 input: - filing_status: JOINT - head_is_dependent_elsewhere: true - spouse_is_dependent_elsewhere: false - il_base_income: 2_000 # Less than $2,800 personal exemption. - state_code: IL + people: + head: + age: 30 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + spouse: + age: 29 + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + il_base_income: 2_000 + households: + household: + members: [head, spouse] + state_code: IL output: il_personal_exemption_eligibility_status: BOTH_ELIGIBLE -- name: 2024 Joint household, one claimable elsewhere, base income greater than $2,800 +- name: 2024 Joint household, one claimed elsewhere, base income greater than $2,775 period: 2024 input: - filing_status: JOINT - head_is_dependent_elsewhere: true - spouse_is_dependent_elsewhere: false - il_base_income: 6_000 # More than $2,800 personal exemption. - state_code: IL + people: + head: + age: 30 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + spouse: + age: 29 + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + il_base_income: 6_000 + households: + household: + members: [head, spouse] + state_code: IL output: il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE -- name: 2024 Joint household, neither claimable elsewhere, base income less than $5,600 +- name: 2024 Joint household, neither claimed elsewhere, base income less than $5,550 period: 2024 input: - filing_status: JOINT - head_is_dependent_elsewhere: false - spouse_is_dependent_elsewhere: false - il_base_income: 2_000 # Less than $2,800 personal exemption. - state_code: IL + people: + head: + age: 30 + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + spouse: + age: 29 + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + il_base_income: 2_000 + households: + household: + members: [head, spouse] + state_code: IL output: il_personal_exemption_eligibility_status: BOTH_ELIGIBLE -- name: 2024 Joint household, neither claimable elsewhere, base income greater than $5,600 +- name: 2024 Joint household, neither claimed elsewhere, base income greater than $5,550 period: 2024 input: - filing_status: JOINT - head_is_dependent_elsewhere: false - spouse_is_dependent_elsewhere: false - il_base_income: 6_000 # More than $2,800 personal exemption. - state_code: IL + people: + head: + age: 30 + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + spouse: + age: 29 + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + il_base_income: 6_000 + households: + household: + members: [head, spouse] + state_code: IL output: il_personal_exemption_eligibility_status: BOTH_ELIGIBLE -- name: 2024 Single household, claimable elsewhere, base income less than $2,800 +- name: 2024 Single household, claimed elsewhere, base income less than $2,775 period: 2024 input: + age: 30 filing_status: SINGLE - head_is_dependent_elsewhere: true - il_base_income: 2_000 # Less than $2,800 personal exemption. + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + il_base_income: 2_000 state_code: IL output: il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE -- name: 2024 Single household, claimable elsewhere, base income greater than $2,800 +- name: 2024 Single household, claimed elsewhere, base income greater than $2,775 period: 2024 input: + age: 30 filing_status: SINGLE - head_is_dependent_elsewhere: true - il_base_income: 6_000 # More than $2,800 personal exemption. + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + il_base_income: 6_000 state_code: IL output: il_personal_exemption_eligibility_status: NOT_ELIGIBLE -- name: 2024 Single household, not claimable elsewhere, base income less than $2,800 +- name: 2024 Single household, not claimed elsewhere, base income less than $2,775 period: 2024 input: + age: 30 filing_status: SINGLE - head_is_dependent_elsewhere: false - il_base_income: 2_000 # Less than $2,800 personal exemption. + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + il_base_income: 2_000 state_code: IL output: il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE -- name: Single household, not claimable elsewhere, base income greater than $2,800 +- name: Single household, not claimed elsewhere, base income greater than $2,775 period: 2024 input: + age: 30 filing_status: SINGLE - head_is_dependent_elsewhere: false - il_base_income: 6_000 # More than $2,800 personal exemption. + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + il_base_income: 6_000 state_code: IL output: il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE -- name: Joint household, neither claimable elsewhere, base income less than $4,750 +- name: Joint household, neither claimed elsewhere, base income less than $4,750 period: 2021 input: - filing_status: JOINT - head_is_dependent_elsewhere: false - spouse_is_dependent_elsewhere: false - il_base_income: 2_000 # Less than $2,375 personal exemption. - state_code: IL + people: + head: + age: 30 + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + spouse: + age: 29 + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + il_base_income: 2_000 + households: + household: + members: [head, spouse] + state_code: IL output: il_personal_exemption_eligibility_status: BOTH_ELIGIBLE -- name: Joint household, neither claimable elsewhere, base income greater than $4,750 +- name: Joint household, neither claimed elsewhere, base income greater than $4,750 period: 2021 input: - filing_status: JOINT - head_is_dependent_elsewhere: false - spouse_is_dependent_elsewhere: false - il_base_income: 5_000 # More than $2,375 personal exemption. - state_code: IL + people: + head: + age: 30 + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + spouse: + age: 29 + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + il_base_income: 5_000 + households: + household: + members: [head, spouse] + state_code: IL output: il_personal_exemption_eligibility_status: BOTH_ELIGIBLE -- name: Single household, claimable elsewhere, base income less than $2,375 +- name: Single household, claimed elsewhere, base income less than $2,375 period: 2021 input: + age: 30 filing_status: SINGLE - head_is_dependent_elsewhere: true - il_base_income: 2_000 # Less than $2,375 personal exemption. + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + il_base_income: 2_000 state_code: IL output: il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE -- name: Single household, claimable elsewhere, base income greater than $2,375 +- name: Single household, claimed elsewhere, base income greater than $2,375 period: 2021 input: + age: 30 filing_status: SINGLE - head_is_dependent_elsewhere: true - il_base_income: 5_000 # More than $2,375 personal exemption. + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + il_base_income: 5_000 state_code: IL output: il_personal_exemption_eligibility_status: NOT_ELIGIBLE -- name: Single household, not claimable elsewhere, base income less than $2,375 +- name: Single household, not claimed elsewhere, base income less than $2,375 period: 2021 input: + age: 30 filing_status: SINGLE - head_is_dependent_elsewhere: false - il_base_income: 2_000 # Less than $2,375 personal exemption. + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + il_base_income: 2_000 state_code: IL output: il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE -- name: Single household, not claimable elsewhere, base income greater than $2,375 +- name: Single household, not claimed elsewhere, base income greater than $2,375 period: 2021 input: + age: 30 filing_status: SINGLE - head_is_dependent_elsewhere: false - il_base_income: 5_000 # More than $2,375 personal exemption. + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + il_base_income: 5_000 state_code: IL output: il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE -- name: Joint household, both claimable elsewhere, base income less than $4,750 +- name: Joint household, both claimed elsewhere, base income less than $4,750 period: 2021 input: - filing_status: JOINT - head_is_dependent_elsewhere: true - spouse_is_dependent_elsewhere: true - il_base_income: 2_000 # Less than $2,375 personal exemption. - state_code: IL + people: + head: + age: 30 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + spouse: + age: 29 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + il_base_income: 2_000 + households: + household: + members: [head, spouse] + state_code: IL output: il_personal_exemption_eligibility_status: BOTH_ELIGIBLE -- name: Joint household, both claimable elsewhere, base income greater than $4,750 +- name: Joint household, both claimed elsewhere, base income greater than $4,750 period: 2021 input: - filing_status: JOINT - head_is_dependent_elsewhere: true - spouse_is_dependent_elsewhere: true - il_base_income: 5_000 # More than $2,375 personal exemption. - state_code: IL + people: + head: + age: 30 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + spouse: + age: 29 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + il_base_income: 5_000 + households: + household: + members: [head, spouse] + state_code: IL output: - il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE + il_personal_exemption_eligibility_status: NOT_ELIGIBLE -- name: Joint household, one claimable elsewhere, base income less than $2,375 +- name: Joint household, one claimed elsewhere, base income less than $2,375 period: 2021 input: - filing_status: JOINT - head_is_dependent_elsewhere: true - spouse_is_dependent_elsewhere: false - il_base_income: 2_000 # Less than $2,375 personal exemption. - state_code: IL + people: + head: + age: 30 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + spouse: + age: 29 + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + il_base_income: 2_000 + households: + household: + members: [head, spouse] + state_code: IL output: il_personal_exemption_eligibility_status: BOTH_ELIGIBLE -- name: Joint household, one claimable elsewhere, base income greater than $2,375 +- name: Joint household, one claimed elsewhere, base income greater than $2,375 period: 2021 input: - filing_status: JOINT - head_is_dependent_elsewhere: true - spouse_is_dependent_elsewhere: false - il_base_income: 5_000 # More than $2,375 personal exemption. - state_code: IL + people: + head: + age: 30 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + spouse: + age: 29 + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + il_base_income: 5_000 + households: + household: + members: [head, spouse] + state_code: IL output: il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE -- name: Joint household, neither claimable elsewhere, base income less than $4,750 +- name: Joint household, neither claimed elsewhere, base income less than $4,750 period: 2021 input: - filing_status: JOINT - head_is_dependent_elsewhere: false - spouse_is_dependent_elsewhere: false - il_base_income: 2_000 # Less than $2,375 personal exemption. - state_code: IL + people: + head: + age: 30 + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + spouse: + age: 29 + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + il_base_income: 2_000 + households: + household: + members: [head, spouse] + state_code: IL output: il_personal_exemption_eligibility_status: BOTH_ELIGIBLE -- name: Joint household, neither claimable elsewhere, base income greater than $4,750 +- name: Joint household, neither claimed elsewhere, base income greater than $4,750 period: 2021 input: - filing_status: JOINT - head_is_dependent_elsewhere: false - spouse_is_dependent_elsewhere: false - il_base_income: 5_000 # More than $2,375 personal exemption. - state_code: IL + people: + head: + age: 30 + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + spouse: + age: 29 + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + il_base_income: 5_000 + households: + household: + members: [head, spouse] + state_code: IL output: il_personal_exemption_eligibility_status: BOTH_ELIGIBLE -- name: Single household, claimable elsewhere, base income less than $2,375 +- name: Single household, claimed elsewhere, base income less than $2,375 period: 2021 input: + age: 30 filing_status: SINGLE - head_is_dependent_elsewhere: true - il_base_income: 2_000 # Less than $2,375 personal exemption. + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + il_base_income: 2_000 state_code: IL output: il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE -- name: Single household, claimable elsewhere, base income greater than $2,375 +- name: Single household, claimed elsewhere, base income greater than $2,375 period: 2021 input: + age: 30 filing_status: SINGLE - head_is_dependent_elsewhere: true - il_base_income: 5_000 # More than $2,375 personal exemption. + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + il_base_income: 5_000 state_code: IL output: il_personal_exemption_eligibility_status: NOT_ELIGIBLE -- name: Single household, not claimable elsewhere, base income less than $2,375 +- name: Single household, not claimed elsewhere, base income less than $2,375 period: 2021 input: + age: 30 filing_status: SINGLE - head_is_dependent_elsewhere: false - il_base_income: 2_000 # Less than $2,375 personal exemption. + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + il_base_income: 2_000 state_code: IL output: il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE -- name: Single household, not claimable elsewhere, base income greater than $2,375 +- name: Single household, not claimed elsewhere, base income greater than $2,375 period: 2021 input: + age: 30 filing_status: SINGLE - head_is_dependent_elsewhere: false - il_base_income: 5_000 # More than $2,375 personal exemption. + claimable_as_dependent_on_another_return: false + claimed_as_dependent_on_another_return: false + il_base_income: 5_000 + state_code: IL + output: + il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE + +- name: Claimability alone does not exclude a single filer from the 2025 exemption + period: 2025 + input: + age: 30 + state_code: IL + filing_status: SINGLE + il_base_income: 10_000 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: false + output: + il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE + +- name: An actual claim permits one exemption below the basic amount + period: 2025 + input: + age: 30 state_code: IL + filing_status: SINGLE + il_base_income: 2_849 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + output: + il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE + +- name: An actual claim permits one exemption at the basic amount + period: 2025 + input: + age: 30 + state_code: IL + filing_status: SINGLE + il_base_income: 2_850 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + output: + il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE + +- name: An actual claim excludes a single filer above the basic amount + period: 2025 + input: + age: 30 + state_code: IL + filing_status: SINGLE + il_base_income: 2_851 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + output: + il_personal_exemption_eligibility_status: NOT_ELIGIBLE + +- name: Joint exemption eligibility counts actual claims symmetrically for the head and spouse + period: 2025 + input: + people: + claimed_head: + age: 30 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + unclaimed_spouse: + age: 29 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: false + unclaimed_head: + age: 30 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: false + claimed_spouse: + age: 29 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + neither_claimed_head: + age: 30 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: false + neither_claimed_spouse: + age: 29 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: false + tax_units: + head_claimed: + members: [claimed_head, unclaimed_spouse] + filing_status: JOINT + il_base_income: 10_000 + spouse_claimed: + members: [unclaimed_head, claimed_spouse] + filing_status: JOINT + il_base_income: 10_000 + neither_claimed: + members: [neither_claimed_head, neither_claimed_spouse] + filing_status: JOINT + il_base_income: 10_000 + households: + household: + members: [claimed_head, unclaimed_spouse, unclaimed_head, claimed_spouse, neither_claimed_head, neither_claimed_spouse] + state_code: IL + output: + # One value per tax unit, in input order: head_claimed, spouse_claimed, + # neither_claimed. + il_personal_exemption_eligibility_status: + [PARTIALLY_ELIGIBLE, PARTIALLY_ELIGIBLE, BOTH_ELIGIBLE] + +- name: An actual claim of a child does not exclude the unclaimed filer's exemption + period: 2025 + input: + people: + filer: + age: 30 + claimed_as_dependent_on_another_return: false + child: + age: 10 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [filer, child] + filing_status: SINGLE + il_base_income: 10_000 + households: + household: + members: [filer, child] + state_code: IL + output: + il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE + +- name: Both Illinois spouses keep their exemption at $2,850 when only one is claimed + period: 2025 + input: + people: + filer: + age: 30 + employment_income: 2_850 + spouse: + age: 29 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [filer, spouse] + filing_status: JOINT + households: + household: + members: [filer, spouse] + state_code: IL + output: + il_personal_exemption_eligibility_status: BOTH_ELIGIBLE + il_personal_exemption: 5_700 + +- name: Only the unclaimed Illinois spouse keeps the exemption at $2,851 + period: 2025 + input: + people: + filer: + age: 30 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + spouse: + age: 29 + employment_income: 2_851 + tax_units: + tax_unit: + members: [filer, spouse] + filing_status: JOINT + households: + household: + members: [filer, spouse] + state_code: IL + output: + il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE + il_personal_exemption: 2_850 + +- name: A 2025 Illinois joint return with $4,000 and one claimed spouse owes $56.93 + period: 2025 + absolute_error_margin: 0.001 + input: + people: + filer: + age: 30 + employment_income: 4_000 + spouse: + age: 29 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [filer, spouse] + filing_status: JOINT + households: + household: + members: [filer, spouse] + state_code: IL + output: + il_income_tax: 56.925 + il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE + il_personal_exemption: 2_850 + +- name: Only the unclaimed Illinois spouse keeps the 2021 exemption at $2,376 + period: 2021 + input: + people: + filer: + age: 30 + employment_income: 2_376 + spouse: + age: 29 + claimable_as_dependent_on_another_return: true + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [filer, spouse] + filing_status: JOINT + households: + household: + members: [filer, spouse] + state_code: IL output: il_personal_exemption_eligibility_status: PARTIALLY_ELIGIBLE + il_personal_exemption: 2_375 diff --git a/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/exemptions/in_additional_exemptions.yaml b/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/exemptions/in_additional_exemptions.yaml index f2e8c148095..b27b9911f8a 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/exemptions/in_additional_exemptions.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/exemptions/in_additional_exemptions.yaml @@ -13,3 +13,143 @@ in_qualifying_child_count: 0 output: in_additional_exemptions: 0 + + +- name: 2025 single filer who can be claimed as a dependent, no additional exemption for a dependent child + period: 2025 + input: + people: + filer: + age: 30 + employment_income: 10_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + child: + age: 5 + tax_units: + tax_unit: + members: [filer, child] + households: + household: + members: [filer, child] + state_code: IN + output: + in_additional_exemptions: 0 + in_qualifying_child_count: 0 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, no additional exemption for a dependent child (the claimable spouse is the head) + period: 2025 + input: + people: + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: IN + output: + in_additional_exemptions: 0 + in_qualifying_child_count: 0 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, no additional exemption for a dependent child (the claimable spouse is the spouse) + period: 2025 + input: + people: + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_b, person_a, child] + filing_status: JOINT + households: + household: + members: [person_b, person_a, child] + state_code: IN + output: + in_additional_exemptions: 0 + in_qualifying_child_count: 0 + +- name: 2025 joint return with both spouses claimable as dependents, no additional exemption for a dependent child + period: 2025 + input: + people: + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: IN + output: + in_additional_exemptions: 0 + in_qualifying_child_count: 0 + +- name: 2025 joint return with neither spouse claimable gets the additional exemption for a dependent child + period: 2025 + input: + people: + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: IN + output: + in_additional_exemptions: 1_500 + in_qualifying_child_count: 1 diff --git a/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/exemptions/in_base_exemptions.yaml b/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/exemptions/in_base_exemptions.yaml index 074154a62e4..eee5f9b4317 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/exemptions/in_base_exemptions.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/exemptions/in_base_exemptions.yaml @@ -13,3 +13,224 @@ tax_unit_size: 3 output: in_base_exemptions: 3_000 + + +- name: 2025 single filer who can be claimed as a dependent, the filers keep their own exemptions but claim no dependent + period: 2025 + input: + people: + filer: + age: 30 + employment_income: 10_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + child: + age: 5 + tax_units: + tax_unit: + members: [filer, child] + households: + household: + members: [filer, child] + state_code: IN + output: + # Information Bulletin 117: the own exemption stays "even if the + # individual can be claimed as a dependent"; IRC 152(b)(1) removes + # the dependents. + in_base_exemptions: 1_000 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, the filers keep their own exemptions but claim no dependent (the claimable spouse is the head) + period: 2025 + input: + people: + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: IN + output: + in_base_exemptions: 2_000 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, the filers keep their own exemptions but claim no dependent (the claimable spouse is the spouse) + period: 2025 + input: + people: + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_b, person_a, child] + filing_status: JOINT + households: + household: + members: [person_b, person_a, child] + state_code: IN + output: + in_base_exemptions: 2_000 + +- name: 2025 joint return with both spouses claimable as dependents, the filers keep their own exemptions but claim no dependent + period: 2025 + input: + people: + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: IN + output: + in_base_exemptions: 2_000 + +- name: 2025 joint return with neither spouse claimable gets base exemptions for both filers and their dependent + period: 2025 + input: + people: + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 5 + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: IN + output: + in_base_exemptions: 3_000 + + +- name: 2025 single filer who can be claimed keeps the dependent's exemption when the would-be claimant meets the filing exception + period: 2025 + input: + people: + filer: + age: 30 + is_tax_unit_head: true + employment_income: 10_000 + claimable_as_dependent_on_another_return: true + dependent_claimant_filing_exception: true + child: + age: 5 + tax_units: + tax_unit: + members: [filer, child] + households: + household: + members: [filer, child] + state_code: IN + output: + in_base_exemptions: 2_000 + +- name: Indiana claimable separate filer keeps the exemption for a spouse with no federal AGI + period: 2025 + input: + people: + filer: + age: 20 + employment_income: 10_000 + is_tax_unit_head: true + claimable_as_dependent_on_another_return: true + spouse: + age: 21 + is_tax_unit_dependent: true + is_tax_unit_spouse: false + tax_units: + tax_unit: + members: [filer, spouse] + filing_status: SEPARATE + spouse_separate_adjusted_gross_income: 0 + marital_units: + marital_unit: + members: [filer, spouse] + households: + household: + members: [filer, spouse] + state_code: IN + output: + # 1,000 for the filer + 1,000 for the spouse with zero federal AGI. + in_base_exemptions: 2_000 + in_exemptions: 2_000 + +- name: Indiana claimable separate filer has no spouse exemption when the spouse has federal AGI + period: 2025 + input: + people: + filer: + age: 20 + employment_income: 10_000 + is_tax_unit_head: true + claimable_as_dependent_on_another_return: true + spouse: + age: 21 + is_tax_unit_dependent: true + is_tax_unit_spouse: false + tax_units: + tax_unit: + members: [filer, spouse] + filing_status: SEPARATE + spouse_separate_adjusted_gross_income: 1 + marital_units: + marital_unit: + members: [filer, spouse] + households: + household: + members: [filer, spouse] + state_code: IN + output: + # 1,000 for the filer + 0 for the spouse with nonzero federal AGI. + in_base_exemptions: 1_000 + in_exemptions: 1_000 diff --git a/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/exemptions/in_is_qualifying_dependent_child.yaml b/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/exemptions/in_is_qualifying_dependent_child.yaml index daf103238c4..cd67b520dc4 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/exemptions/in_is_qualifying_dependent_child.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/exemptions/in_is_qualifying_dependent_child.yaml @@ -44,3 +44,53 @@ is_full_time_student: true output: in_is_qualifying_dependent_child: false + +- name: Indiana nonstudent dependent age 18.5 qualifies for the additional exemption + period: 2025 + input: + people: + filer: + age: 40 + employment_income: 25_000 + is_tax_unit_head: true + child: + age: 18.5 + is_tax_unit_dependent: true + is_full_time_student: false + tax_units: + tax_unit: + members: [filer, child] + households: + household: + members: [filer, child] + state_code: IN + output: + # One dependent under age 19 x 1,500 = 1,500. + in_is_qualifying_dependent_child: [false, true] + in_additional_exemptions: 1_500 + +- name: Indiana student age 23.5 qualifies under the claimant filing exception + period: 2025 + input: + people: + filer: + age: 40 + employment_income: 25_000 + is_tax_unit_head: true + claimable_as_dependent_on_another_return: true + dependent_claimant_filing_exception: true + child: + age: 23.5 + is_tax_unit_dependent: true + is_full_time_student: true + tax_units: + tax_unit: + members: [filer, child] + households: + household: + members: [filer, child] + state_code: IN + output: + # One full-time student under age 24 x 1,500 = 1,500. + in_is_qualifying_dependent_child: [false, true] + in_additional_exemptions: 1_500 diff --git a/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/in_eitc.yaml b/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/in_eitc.yaml index 047c4ac7ed6..6a45c7355ab 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/in_eitc.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/in_eitc.yaml @@ -416,3 +416,149 @@ # wages, so federal earned income is $6,000 (Form 1040 EIC Worksheet B, # line 4b, combines both spouses' amounts on a joint return). in_eitc: 216 + +- name: 2025 single filer who can be claimed as a dependent, no Indiana EITC without a qualifying child + period: 2025 + absolute_error_margin: 0.01 + input: + people: + filer: + age: 30 + employment_income: 1_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [filer] + spm_units: + spm_unit: + members: [filer] + households: + household: + members: [filer] + state_code: IN + output: + # Already zero through the federal EITC (IRC 32(c)(1)(A)(ii)(III)). + in_eitc: 0 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, no Indiana EITC without a qualifying child (the claimable spouse is the head) + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person_a: + age: 30 + employment_income: 500 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + employment_income: 500 + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + spm_units: + spm_unit: + members: [person_a, person_b] + households: + household: + members: [person_a, person_b] + state_code: IN + output: + in_eitc: 0 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, no Indiana EITC without a qualifying child (the claimable spouse is the spouse) + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person_b: + age: 30 + employment_income: 500 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_a: + age: 30 + employment_income: 500 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [person_b, person_a] + filing_status: JOINT + spm_units: + spm_unit: + members: [person_b, person_a] + households: + household: + members: [person_b, person_a] + state_code: IN + output: + in_eitc: 0 + +- name: 2025 joint return with both spouses claimable as dependents, no Indiana EITC without a qualifying child + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person_a: + age: 30 + employment_income: 500 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + employment_income: 500 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + spm_units: + spm_unit: + members: [person_a, person_b] + households: + household: + members: [person_a, person_b] + state_code: IN + output: + in_eitc: 0 + +- name: 2025 joint return with neither spouse claimable gets the Indiana EITC without a qualifying child + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person_a: + age: 30 + employment_income: 500 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + employment_income: 500 + is_tax_unit_head: false + is_tax_unit_spouse: true + tax_units: + tax_unit: + members: [person_a, person_b] + filing_status: JOINT + spm_units: + spm_unit: + members: [person_a, person_b] + households: + household: + members: [person_a, person_b] + state_code: IN + output: + # 0.0765 x 1,000 = 76.50 x 10% = 7.65 + in_eitc: 7.65 diff --git a/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/in_nonpublic_school_deduction.yaml b/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/in_nonpublic_school_deduction.yaml index a3c37577fc5..5283ae72e1a 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/in_nonpublic_school_deduction.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/in/tax/income/in_nonpublic_school_deduction.yaml @@ -2,30 +2,234 @@ period: 2021 input: people: - child1: + filer: + age: 30 + employment_income: 1_000 + is_tax_unit_head: true + child1: + age: 10 + is_tax_unit_dependent: true is_in_k12_nonpublic_school: true - child2: + child2: + age: 10 + is_tax_unit_dependent: true is_in_k12_nonpublic_school: true - tax_unit: - members: [child1, child2] + tax_units: + tax_unit: + members: [filer, child1, child2] households: household: - members: [child1, child2] + members: [filer, child1, child2] state_code: IN output: + # 2 dependent children x 1,000 = 2,000. in_nonpublic_school_deduction: 2_000 - name: 1 qualifying kid period: 2021 input: people: - child1: + filer: + age: 30 + employment_income: 1_000 + is_tax_unit_head: true + child1: + age: 10 + is_tax_unit_dependent: true is_in_k12_nonpublic_school: true - tax_unit: - members: [child1] + tax_units: + tax_unit: + members: [filer, child1] households: household: - members: [child1] + members: [filer, child1] state_code: IN output: + # 1 dependent child x 1,000 = 1,000. + in_nonpublic_school_deduction: 1_000 + +- name: 2025 single filer who can be claimed as a dependent, no nonpublic school deduction + period: 2025 + input: + people: + filer: + age: 30 + employment_income: 10_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + child: + age: 10 + is_in_k12_nonpublic_school: true + tax_units: + tax_unit: + members: [filer, child] + households: + household: + members: [filer, child] + state_code: IN + output: + # Information Bulletin 107: the child must be the taxpayer's IRC + # 152 dependent; a return with a claimable filer has none. + in_nonpublic_school_deduction: 0 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, no nonpublic school deduction (the claimable spouse is the head) + period: 2025 + input: + people: + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 10 + is_in_k12_nonpublic_school: true + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: IN + output: + in_nonpublic_school_deduction: 0 + +- name: 2025 joint return with one spouse who can be claimed as a dependent, no nonpublic school deduction (the claimable spouse is the spouse) + period: 2025 + input: + people: + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 10 + is_in_k12_nonpublic_school: true + tax_units: + tax_unit: + members: [person_b, person_a, child] + filing_status: JOINT + households: + household: + members: [person_b, person_a, child] + state_code: IN + output: + in_nonpublic_school_deduction: 0 + +- name: 2025 joint return with both spouses claimable as dependents, no nonpublic school deduction + period: 2025 + input: + people: + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + claimed_as_dependent_on_another_return: true + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + claimed_as_dependent_on_another_return: true + child: + age: 10 + is_in_k12_nonpublic_school: true + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: IN + output: + in_nonpublic_school_deduction: 0 + +- name: 2025 joint return with neither spouse claimable gets the nonpublic school deduction + period: 2025 + input: + people: + person_a: + age: 30 + employment_income: 5_000 + is_tax_unit_head: true + is_tax_unit_spouse: false + person_b: + age: 30 + employment_income: 5_000 + is_tax_unit_head: false + is_tax_unit_spouse: true + child: + age: 10 + is_in_k12_nonpublic_school: true + tax_units: + tax_unit: + members: [person_a, person_b, child] + filing_status: JOINT + households: + household: + members: [person_a, person_b, child] + state_code: IN + output: + in_nonpublic_school_deduction: 1_000 + +- name: Indiana filer attending nonpublic school gets no deduction for their own schooling + period: 2025 + input: + people: + filer: + age: 17 + employment_income: 1_000 + is_tax_unit_head: true + is_in_k12_nonpublic_school: true + tax_units: + tax_unit: + members: [filer] + households: + household: + members: [filer] + state_code: IN + output: + # Zero enrolled dependent children x 1,000 = 0. + in_nonpublic_school_deduction: 0 + +- name: Indiana claimant filing exception restores the nonpublic school deduction + period: 2025 + input: + people: + filer: + age: 30 + employment_income: 10_000 + is_tax_unit_head: true + claimable_as_dependent_on_another_return: true + dependent_claimant_filing_exception: true + child: + age: 10 + is_tax_unit_dependent: true + is_in_k12_nonpublic_school: true + tax_units: + tax_unit: + members: [filer, child] + households: + household: + members: [filer, child] + state_code: IN + output: + # One enrolled dependent child x 1,000 = 1,000. in_nonpublic_school_deduction: 1_000 diff --git a/policyengine_us/tests/policy/contrib/states/il/dependent_exemption_reform_test.yaml b/policyengine_us/tests/policy/contrib/states/il/dependent_exemption_reform_test.yaml index b10de6f49ee..9470e2b4ed5 100644 --- a/policyengine_us/tests/policy/contrib/states/il/dependent_exemption_reform_test.yaml +++ b/policyengine_us/tests/policy/contrib/states/il/dependent_exemption_reform_test.yaml @@ -71,3 +71,59 @@ households: {household: {members: [parent, child1], state_name: IL}} # Dependent one year under the limit (12 < 13) receives the exemption. output: {il_dependent_exemption: 2_850} + +- name: IL dependent exemption reform at its defaults keeps no dependent exemption for a single filer who can be claimed + period: 2025 + reforms: policyengine_us.reforms.states.il.dependent_exemption.il_dependent_exemption_reform.il_dependent_exemption_reform + input: + gov.contrib.states.il.dependent_exemption.in_effect: true + people: + filer: {age: 20, employment_income: 10_000, claimed_as_dependent_on_another_return: true} + child: {age: 5, is_tax_unit_dependent: true} + tax_units: {tax_unit: {members: [filer, child]}} + households: {household: {members: [filer, child], state_code: IL}} + # 35 ILCS 5/204(c) and IRC 152(b)(1), as in the baseline formula. + output: + il_dependent_exemption: 0 + +- name: IL dependent exemption reform at its defaults, joint return with one claimable spouse (the claimable spouse is the head) + period: 2025 + reforms: policyengine_us.reforms.states.il.dependent_exemption.il_dependent_exemption_reform.il_dependent_exemption_reform + input: + gov.contrib.states.il.dependent_exemption.in_effect: true + people: + person_a: {age: 20, employment_income: 5_000, is_tax_unit_head: true, is_tax_unit_spouse: false, claimed_as_dependent_on_another_return: true} + person_b: {age: 20, employment_income: 5_000, is_tax_unit_head: false, is_tax_unit_spouse: true} + child: {age: 5, is_tax_unit_dependent: true} + tax_units: {tax_unit: {members: [person_a, person_b, child], filing_status: JOINT}} + households: {household: {members: [person_a, person_b, child], state_code: IL}} + output: + il_dependent_exemption: 0 + +- name: IL dependent exemption reform at its defaults, joint return with one claimable spouse (the claimable spouse is the spouse) + period: 2025 + reforms: policyengine_us.reforms.states.il.dependent_exemption.il_dependent_exemption_reform.il_dependent_exemption_reform + input: + gov.contrib.states.il.dependent_exemption.in_effect: true + people: + person_b: {age: 20, employment_income: 5_000, is_tax_unit_head: true, is_tax_unit_spouse: false} + person_a: {age: 20, employment_income: 5_000, is_tax_unit_head: false, is_tax_unit_spouse: true, claimed_as_dependent_on_another_return: true} + child: {age: 5, is_tax_unit_dependent: true} + tax_units: {tax_unit: {members: [person_b, person_a, child], filing_status: JOINT}} + households: {household: {members: [person_b, person_a, child], state_code: IL}} + output: + il_dependent_exemption: 0 + +- name: IL dependent exemption reform at its defaults matches the baseline when nobody can be claimed + period: 2025 + reforms: policyengine_us.reforms.states.il.dependent_exemption.il_dependent_exemption_reform.il_dependent_exemption_reform + input: + gov.contrib.states.il.dependent_exemption.in_effect: true + people: + person_a: {age: 20, employment_income: 5_000, is_tax_unit_head: true, is_tax_unit_spouse: false} + person_b: {age: 20, employment_income: 5_000, is_tax_unit_head: false, is_tax_unit_spouse: true} + child: {age: 5, is_tax_unit_dependent: true} + tax_units: {tax_unit: {members: [person_a, person_b, child], filing_status: JOINT}} + households: {household: {members: [person_a, person_b, child], state_code: IL}} + output: + il_dependent_exemption: 2_850 diff --git a/policyengine_us/tests/policy/contrib/states/in/dependent_exemption_reform_test.yaml b/policyengine_us/tests/policy/contrib/states/in/dependent_exemption_reform_test.yaml index 1fed91484c0..b5b0f767b9f 100644 --- a/policyengine_us/tests/policy/contrib/states/in/dependent_exemption_reform_test.yaml +++ b/policyengine_us/tests/policy/contrib/states/in/dependent_exemption_reform_test.yaml @@ -251,3 +251,91 @@ # rate this raises IN income tax by $60, from 1,620.00 to 1,680.00. output: in_income_tax: 1680.00 + +- name: IN dependent exemption reform at its defaults keeps the filer's own exemption but no dependent for a single filer who can be claimed + period: 2025 + reforms: policyengine_us.reforms.states.in.dependent_exemption.in_dependent_exemption_reform.in_dependent_exemption_reform + input: + gov.contrib.states.in.dependent_exemption.in_effect: true + people: + filer: {age: 20, employment_income: 10_000, claimed_as_dependent_on_another_return: true} + child: {age: 5, is_tax_unit_dependent: true} + tax_units: {tax_unit: {members: [filer, child]}} + households: {household: {members: [filer, child], state_code: IN}} + # Bulletin 117: the own $1,000 stays; IRC 152(b)(1) removes the child. + output: + in_base_exemptions: 1_000 + +- name: IN dependent exemption reform at its defaults, joint return with one claimable spouse (the claimable spouse is the head) + period: 2025 + reforms: policyengine_us.reforms.states.in.dependent_exemption.in_dependent_exemption_reform.in_dependent_exemption_reform + input: + gov.contrib.states.in.dependent_exemption.in_effect: true + people: + person_a: {age: 20, employment_income: 5_000, is_tax_unit_head: true, is_tax_unit_spouse: false, claimed_as_dependent_on_another_return: true} + person_b: {age: 20, employment_income: 5_000, is_tax_unit_head: false, is_tax_unit_spouse: true} + child: {age: 5, is_tax_unit_dependent: true} + tax_units: {tax_unit: {members: [person_a, person_b, child], filing_status: JOINT}} + households: {household: {members: [person_a, person_b, child], state_code: IN}} + output: + in_base_exemptions: 2_000 + +- name: IN dependent exemption reform at its defaults, joint return with one claimable spouse (the claimable spouse is the spouse) + period: 2025 + reforms: policyengine_us.reforms.states.in.dependent_exemption.in_dependent_exemption_reform.in_dependent_exemption_reform + input: + gov.contrib.states.in.dependent_exemption.in_effect: true + people: + person_b: {age: 20, employment_income: 5_000, is_tax_unit_head: true, is_tax_unit_spouse: false} + person_a: {age: 20, employment_income: 5_000, is_tax_unit_head: false, is_tax_unit_spouse: true, claimed_as_dependent_on_another_return: true} + child: {age: 5, is_tax_unit_dependent: true} + tax_units: {tax_unit: {members: [person_b, person_a, child], filing_status: JOINT}} + households: {household: {members: [person_b, person_a, child], state_code: IN}} + output: + in_base_exemptions: 2_000 + +- name: IN dependent exemption reform at its defaults matches the baseline when nobody can be claimed + period: 2025 + reforms: policyengine_us.reforms.states.in.dependent_exemption.in_dependent_exemption_reform.in_dependent_exemption_reform + input: + gov.contrib.states.in.dependent_exemption.in_effect: true + people: + person_a: {age: 20, employment_income: 5_000, is_tax_unit_head: true, is_tax_unit_spouse: false} + person_b: {age: 20, employment_income: 5_000, is_tax_unit_head: false, is_tax_unit_spouse: true} + child: {age: 5, is_tax_unit_dependent: true} + tax_units: {tax_unit: {members: [person_a, person_b, child], filing_status: JOINT}} + households: {household: {members: [person_a, person_b, child], state_code: IN}} + output: + in_base_exemptions: 3_000 + +- name: Indiana reform keeps the exemption for a spouse with no federal AGI + period: 2025 + reforms: policyengine_us.reforms.states.in.dependent_exemption.in_dependent_exemption_reform.in_dependent_exemption_reform + input: + gov.contrib.states.in.dependent_exemption.in_effect: true + gov.contrib.states.in.dependent_exemption.amount: 0 + people: + filer: + age: 20 + employment_income: 10_000 + is_tax_unit_head: true + claimable_as_dependent_on_another_return: true + spouse: + age: 21 + is_tax_unit_dependent: true + is_tax_unit_spouse: false + tax_units: + tax_unit: + members: [filer, spouse] + filing_status: SEPARATE + spouse_separate_adjusted_gross_income: 0 + marital_units: + marital_unit: + members: [filer, spouse] + households: + household: + members: [filer, spouse] + state_code: IN + output: + # The personal portion is 1,000 + 1,000. The dependent portion is 0. + in_base_exemptions: 2_000 diff --git a/policyengine_us/tools/state_eitc_helpers.py b/policyengine_us/tools/state_eitc_helpers.py index c44617ba3d2..a421ed670b1 100644 --- a/policyengine_us/tools/state_eitc_helpers.py +++ b/policyengine_us/tools/state_eitc_helpers.py @@ -4,6 +4,16 @@ from policyengine_us.tools.section_911 import elects_section_911_exclusion +def eitc_filer_is_qualifying_child_elsewhere(tax_unit, period): + """Apply IRC 32(c)(1)(B) and the claimant filing exception.""" + person = tax_unit.members + return tax_unit.any( + person("is_tax_unit_head_or_spouse", period) + & person("is_eitc_qualifying_child_elsewhere", period) + & ~person("eitc_qualifying_child_claimant_filing_exception", period) + ) + + def eitc_filing_requirement_met(tax_unit, period): """Mirror the federal EITC filing condition used in the baseline formula.""" diff --git a/policyengine_us/variables/gov/states/co/tax/income/credits/cdcc/co_low_income_cdcc.py b/policyengine_us/variables/gov/states/co/tax/income/credits/cdcc/co_low_income_cdcc.py index 28cd8c3c9f0..5a3e99abe50 100644 --- a/policyengine_us/variables/gov/states/co/tax/income/credits/cdcc/co_low_income_cdcc.py +++ b/policyengine_us/variables/gov/states/co/tax/income/credits/cdcc/co_low_income_cdcc.py @@ -7,19 +7,40 @@ class co_low_income_cdcc(Variable): label = "Colorado Low-income Child Care Expenses Credit" unit = USD reference = ( + "https://olls.info/crs/crs2025-title-39.pdf#page=411", "https://law.justia.com/codes/colorado/title-39/specific-taxes/income-tax/article-22/part-1/section-39-22-119-5/", "https://tax.colorado.gov/sites/tax/files/documents/DR_104_Book_2022.pdf#page=46", + # Income Tax Topics: Low-income Child Care Expenses Credit (January + # 2026): the taxpayer "would have been allowed to claim a federal child + # care credit if they had a federal income tax liability". + "https://tax.colorado.gov/sites/tax/files/documents/ITT_Low-Income_Child_Care_Expenses_Credit_Jan_2026.pdf#page=1", + "https://www.law.cornell.edu/uscode/text/26/21#b_1", ) definition_period = YEAR defined_for = "co_low_income_cdcc_eligible" def formula(tax_unit, period, parameters): - # follow 2022 DR 0347 form and its instructions (in Book cited above): p = parameters(period).gov.states.co.tax.income.credits # estimate care expenses for just children care_expenses = tax_unit("tax_unit_childcare_expenses", period) age = tax_unit.members("age", period) - eligible_kid = age < p.cdcc.low_income.child_age_threshold + # C.R.S. 39-22-119.5(3)(a)(III)-(IV): care for the taxpayer's dependent + # under 13 for whom the federal IRC 21 credit would be allowed with + # enough tax liability. The independent state dependency requirement + # applies even when IRC 21(b)(1)(B) waives the dependent-taxpayer test + # for a child incapable of self-care. + dependent = tax_unit.members("is_qualifying_child_dependent", period) + person = tax_unit.members + filer_is_dependent = person.tax_unit( + "head_or_spouse_is_dependent_elsewhere_without_filing_exception", period + ) + qualifying_individual = tax_unit.members("is_cdcc_eligible", period) + eligible_kid = ( + (age < p.cdcc.low_income.child_age_threshold) + & dependent + & qualifying_individual + & ~filer_is_dependent + ) eligible_kids = tax_unit.sum(eligible_kid) # tax_unit_childcare_expenses spreads the SPM unit's childcare # expenses evenly across children, so apportion the under-age share diff --git a/policyengine_us/variables/gov/states/co/tax/income/credits/ctc/co_ctc_eligible_child.py b/policyengine_us/variables/gov/states/co/tax/income/credits/ctc/co_ctc_eligible_child.py index 021dc059fd9..ac23f2c54c6 100644 --- a/policyengine_us/variables/gov/states/co/tax/income/credits/ctc/co_ctc_eligible_child.py +++ b/policyengine_us/variables/gov/states/co/tax/income/credits/ctc/co_ctc_eligible_child.py @@ -7,8 +7,11 @@ class co_ctc_eligible_child(Variable): label = "Colorado child tax credit eligible child" definition_period = YEAR reference = ( - "https://leg.colorado.gov/sites/default/files/2023a_1112_signed.pdf#page=2", + "https://leg.colorado.gov/sites/default/files/2023a_1112_signed.pdf#page=4", + "https://www.law.cornell.edu/uscode/text/26/152#c", ) defined_for = StateCode.CO + # From 2024, the statute uses IRC 152(c) qualifying-child status, + # which is retained when the filer can be claimed elsewhere. adds = "gov.states.co.tax.income.credits.ctc.eligible_child" diff --git a/policyengine_us/variables/gov/states/co/tax/income/credits/ctc/co_ctc_qualifying_child.py b/policyengine_us/variables/gov/states/co/tax/income/credits/ctc/co_ctc_qualifying_child.py index 2772b536c39..0f11084cdaa 100644 --- a/policyengine_us/variables/gov/states/co/tax/income/credits/ctc/co_ctc_qualifying_child.py +++ b/policyengine_us/variables/gov/states/co/tax/income/credits/ctc/co_ctc_qualifying_child.py @@ -9,6 +9,7 @@ class co_ctc_qualifying_child(Variable): reference = ( # C.R.S. 39-22-129(2)(a) and (3.5)(a) - House Bill 23-1112. "https://leg.colorado.gov/sites/default/files/2023a_1112_signed.pdf#page=5", + "https://www.law.cornell.edu/uscode/text/26/152#b_1", ) defined_for = StateCode.CO @@ -16,4 +17,11 @@ def formula(person, period, parameters): age = person("age", period) p = parameters(period).gov.states.co.tax.income.credits.ctc is_dependent = person("is_tax_unit_dependent", period) - return is_dependent & (age < p.age_threshold) + # The 2022-2023 credit is a share of the federal child tax credit, + # which is allowed only for the taxpayer's dependents. A return on + # which the filer (or, if joint, either spouse) can be claimed as a + # dependent has no dependents (IRC 152(b)(1)). + filer_is_dependent = person.tax_unit( + "head_or_spouse_is_dependent_elsewhere_without_filing_exception", period + ) + return is_dependent & (age < p.age_threshold) & ~filer_is_dependent diff --git a/policyengine_us/variables/gov/states/co/tax/income/credits/eitc/co_eitc.py b/policyengine_us/variables/gov/states/co/tax/income/credits/eitc/co_eitc.py index c941c366164..8cf371db336 100644 --- a/policyengine_us/variables/gov/states/co/tax/income/credits/eitc/co_eitc.py +++ b/policyengine_us/variables/gov/states/co/tax/income/credits/eitc/co_eitc.py @@ -1,6 +1,7 @@ from policyengine_us.model_api import * from policyengine_us.tools.state_eitc_helpers import ( calculate_eitc_like_amount, + eitc_filer_is_qualifying_child_elsewhere, ) @@ -14,15 +15,22 @@ class co_eitc(Variable): "https://leg.colorado.gov/sites/default/files/te19_colorado_earned_income_tax_credit.pdf", # C.R.S. 39-22-123.5 pays a percentage of the federal IRC 32 credit. "https://leg.colorado.gov/sites/default/files/images/olls/crs2023-title-39.pdf", - # IRC 32(c)(3)(A) applies the IRC 152(c) qualifying-child definition. - "https://www.law.cornell.edu/uscode/text/26/32#c_3_A", + # IRC 32(c)(1)(A)(ii)(III): a filer without a qualifying child + # must not be a dependent of another taxpayer. + "https://www.law.cornell.edu/uscode/text/26/32#c_1_A_ii", + # Publication 596: on a joint return, neither spouse may be claimable. + "https://www.irs.gov/pub/irs-prior/p596--2025.pdf#page=18", + # Part 2(d): qualifying child of another taxpayer. + "https://tax.colorado.gov/sites/tax/files/documents/DR0104TN_2025.pdf", ) defined_for = StateCode.CO def formula(tax_unit, period, parameters): + p = parameters(period).gov.states.co.tax.income.credits.eitc federal_eitc = tax_unit("eitc", period) person = tax_unit.members - age = person("age", period) + # Both routes use completed ages at the end of the tax year. + age = np.floor(person("age", period)) has_tin = person("has_tin", period) is_head_or_spouse = person("is_tax_unit_head_or_spouse", period) filer_has_tin = tax_unit.sum(is_head_or_spouse & ~has_tin) == 0 @@ -48,12 +56,23 @@ def formula(tax_unit, period, parameters): & (age >= federal_childless_age_floor) & (age <= federal_eitc_parameters.eligibility.age.max) ) + # The state routes waive only the identification and age rules. A + # filer without a qualifying child still must not be a dependent of + # another taxpayer (IRC 32(c)(1)(A)(ii)(III)); on a joint return + # neither spouse may be (Publication 596). + filer_is_dependent = tax_unit( + "head_or_spouse_is_dependent_elsewhere_without_filing_exception", period + ) itin_eitc = calculate_eitc_like_amount( tax_unit, period, parameters, child_count_with_tin, - (child_count_with_tin > 0) | childless_filer_age_eligible, + p.itin_expansion_in_effect + & ( + (child_count_with_tin > 0) + | (childless_filer_age_eligible & ~filer_is_dependent) + ), filer_has_tin, ) @@ -64,9 +83,7 @@ def formula(tax_unit, period, parameters): homeless_or_foster = person("was_in_foster_care", period) | person.household( "is_homeless", period ) - p_u25 = parameters( - period - ).gov.states.co.tax.income.credits.eitc.under_25_expansion + p_u25 = p.under_25_expansion under_25_age_eligible = ( ((age >= p_u25.min_age) & (age < p_u25.max_age) & ~specified_student) | (p_u25.eligible_at_max_age & (age == p_u25.max_age)) @@ -76,8 +93,10 @@ def formula(tax_unit, period, parameters): & homeless_or_foster ) ) - under_25_demographic_eligible = tax_unit.any( - is_head_or_spouse & under_25_age_eligible + under_25_demographic_eligible = ( + p_u25.in_effect + & tax_unit.any(is_head_or_spouse & under_25_age_eligible) + & ~filer_is_dependent ) under_25_eitc = calculate_eitc_like_amount( tax_unit, @@ -87,6 +106,8 @@ def formula(tax_unit, period, parameters): under_25_demographic_eligible, filer_has_federal_identification, ) - p = parameters(period).gov.states.co.tax.income.credits state_eitc = max_(federal_eitc, max_(itin_eitc, under_25_eitc)) - return state_eitc * p.eitc.match + filer_is_qualifying_child = eitc_filer_is_qualifying_child_elsewhere( + tax_unit, period + ) + return state_eitc * p.match * ~filer_is_qualifying_child diff --git a/policyengine_us/variables/gov/states/co/tax/income/credits/family_affordability/co_family_affordability_credit.py b/policyengine_us/variables/gov/states/co/tax/income/credits/family_affordability/co_family_affordability_credit.py index 16340c00e57..a5936b9cef3 100644 --- a/policyengine_us/variables/gov/states/co/tax/income/credits/family_affordability/co_family_affordability_credit.py +++ b/policyengine_us/variables/gov/states/co/tax/income/credits/family_affordability/co_family_affordability_credit.py @@ -9,11 +9,16 @@ class co_family_affordability_credit(Variable): label = "Colorado Family Affordability Credit" unit = USD definition_period = YEAR - reference = "https://leg.colorado.gov/bills/hb24-1311" + reference = ( + "https://leg.colorado.gov/sites/default/files/2024a_1311_signed.pdf#page=3", + "https://www.law.cornell.edu/uscode/text/26/152#c", + ) defined_for = StateCode.CO def formula(person, period, parameters): age = person("age", period) + # The statute uses IRC 152(c) qualifying-child status, which is + # retained when the filer can be claimed elsewhere. dependent = person("is_qualifying_child_dependent", period) p = parameters(period).gov.states.co.tax.income.credits.family_affordability base_amount = p.amount * dependent diff --git a/policyengine_us/variables/gov/states/ct/tax/income/credits/property_tax/ct_property_tax_credit_eligible.py b/policyengine_us/variables/gov/states/ct/tax/income/credits/property_tax/ct_property_tax_credit_eligible.py index 381d18e95c1..5ea47afb300 100644 --- a/policyengine_us/variables/gov/states/ct/tax/income/credits/property_tax/ct_property_tax_credit_eligible.py +++ b/policyengine_us/variables/gov/states/ct/tax/income/credits/property_tax/ct_property_tax_credit_eligible.py @@ -7,13 +7,24 @@ class ct_property_tax_credit_eligible(Variable): label = "Eligible for the Connecticut Property Tax Credit" definition_period = YEAR defined_for = StateCode.CT - # (b)(2) - reference = "https://www.cga.ct.gov/current/pub/chap_229.htm#sec_12-704c" + reference = ( + # (b)(2) + "https://www.cga.ct.gov/current/pub/chap_229.htm#sec_12-704c", + "https://www.law.cornell.edu/uscode/text/26/152#b_1", + ) def formula(tax_unit, period, parameters): p = parameters(period).gov.states.ct.tax.income.credits.property_tax age_eligible = tax_unit("greater_age_head_spouse", period) >= p.age_threshold - p = parameters(period).gov.states.ct.tax.income.credits.property_tax - dependents_present = tax_unit("tax_unit_dependents", period) > 0 + # From 2017 through 2021, a filer under 65 qualifies by validly + # claiming a dependent. IRC 152(b)(1) bars dependents if either + # filer can be claimed and the claimant filing exception is absent. + # The age threshold is zero in all other modeled years. + filer_is_dependent = tax_unit( + "head_or_spouse_is_dependent_elsewhere_without_filing_exception", period + ) + dependents_present = (tax_unit("tax_unit_dependents", period) > 0) & ~( + filer_is_dependent + ) return dependents_present | age_eligible diff --git a/policyengine_us/variables/gov/states/ct/tax/income/rebate/ct_child_tax_rebate.py b/policyengine_us/variables/gov/states/ct/tax/income/rebate/ct_child_tax_rebate.py index c03498cc958..5c46f265c4f 100644 --- a/policyengine_us/variables/gov/states/ct/tax/income/rebate/ct_child_tax_rebate.py +++ b/policyengine_us/variables/gov/states/ct/tax/income/rebate/ct_child_tax_rebate.py @@ -21,6 +21,7 @@ class ct_child_tax_rebate(Variable): reference = ( "https://cga.ct.gov/2022/ACT/PA/PDF/2022PA-00118-R00HB-05506-PA.PDF#page=548", "https://portal.ct.gov/-/media/drs/publications/tssb/2022/tssb-2022-5.pdf#page=1", + "https://www.law.cornell.edu/uscode/text/26/152#b_1", ) def formula(tax_unit, period, parameters): @@ -34,14 +35,19 @@ def formula(tax_unit, period, parameters): reduction_start = p.reduction.start[filing_status] person = tax_unit.members - # Age is measured at the period, not "as of December 31, 2021" - # (Sec. 411(a)(1)); PE's age has no within-year date (PE-wide limitation). - age = person("age", period) + # Use completed years for the statutory age on December 31, 2021. + age = np.floor(person("age", period)) # is_tax_unit_dependent (structurally ~head & ~spouse) proxies # Sec. 411(b)(1)'s requirement that the child be validly claimed as a # dependent on the 2021 federal return. dependent = person("is_tax_unit_dependent", period) - eligible_child = (age <= p.age_limit) & dependent + # A return on which the filer (or, if joint, either spouse) can be + # claimed as a dependent has no dependents (IRC 152(b)(1)), so it + # validly claims no child. + filer_is_dependent = person.tax_unit( + "head_or_spouse_is_dependent_elsewhere_without_filing_exception", period + ) + eligible_child = (age <= p.age_limit) & dependent & ~filer_is_dependent count_children = tax_unit.sum(eligible_child) capped_children = min_(count_children, p.child_cap) total_rebate = capped_children * p.amount diff --git a/policyengine_us/variables/gov/states/il/tax/income/credits/il_ctc.py b/policyengine_us/variables/gov/states/il/tax/income/credits/il_ctc.py index 358f5628b8c..73ba205f48b 100644 --- a/policyengine_us/variables/gov/states/il/tax/income/credits/il_ctc.py +++ b/policyengine_us/variables/gov/states/il/tax/income/credits/il_ctc.py @@ -7,15 +7,23 @@ class il_ctc(Variable): label = "Illinois Child Tax Credit" unit = USD definition_period = YEAR - reference = "https://www.ilga.gov/Documents/legislation/103/HB/10300HB4917.htm" + reference = ( + # 35 ILCS 5/244(a), (d): a taxpayer with a "qualifying child" (IRC 152 + # meaning) under 12 gets a share of the Section 212 credit. + "https://www.ilga.gov/Documents/legislation/ilcs/documents/003500050K244.htm", + # 2026 Schedule IL-E/EITC draft instructions: "at least one qualifying + # child that is under the age of 12". + "https://tax.illinois.gov/content/dam/soi/en/web/tax/taxprofessionals/draft-forms/documents/iit-draft-forms/2026-iit-vendor-forms-and-instructions/2026-sch-il-e-eitc-instr-vendor.pdf#page=2", + ) defined_for = StateCode.IL def formula(tax_unit, period, parameters): p = parameters(period).gov.states.il.tax.income.credits.ctc person = tax_unit.members age = person("age", period) - # 35 ILCS 5/212.3 incorporates IRC §32 EITC qualifying-child rules, - # which tie to IRC §152(c) (excluding §152(d) qualifying relatives). + # 35 ILCS 5/244(d) gives "qualifying child" its IRC 152 meaning, not + # an allowable dependent, so a filer who can be claimed as a dependent + # elsewhere still counts their own qualifying child. qualifying_child = person("is_qualifying_child_dependent", period) eligible_child = qualifying_child & (age < p.age_limit) eligible_child_present = tax_unit.any(eligible_child) diff --git a/policyengine_us/variables/gov/states/il/tax/income/credits/il_eitc.py b/policyengine_us/variables/gov/states/il/tax/income/credits/il_eitc.py index 0b750caab1c..8c2e47dcb44 100644 --- a/policyengine_us/variables/gov/states/il/tax/income/credits/il_eitc.py +++ b/policyengine_us/variables/gov/states/il/tax/income/credits/il_eitc.py @@ -1,6 +1,7 @@ from policyengine_us.model_api import * from policyengine_us.tools.state_eitc_helpers import ( calculate_eitc_like_amount, + eitc_filer_is_qualifying_child_elsewhere, ) @@ -14,18 +15,26 @@ class il_eitc(Variable): "https://tax.illinois.gov/programs/eitc.html", # 35 ILCS 5/212 bases the IL EIC on the federal IRC 32 credit. "https://www.ilga.gov/legislation/ilcs/fulltext.asp?DocName=003500050K212", - # IRC 32(c)(3)(A) applies the IRC 152(c) qualifying-child definition. - "https://www.law.cornell.edu/uscode/text/26/32#c_3_A", + # IRC 32(c)(1)(A)(ii)(III): a filer without a qualifying child + # must not be a dependent of another taxpayer. + "https://www.law.cornell.edu/uscode/text/26/32#c_1_A_ii", + # Publication 596: on a joint return, neither spouse may be claimable. + "https://www.irs.gov/pub/irs-prior/p596--2025.pdf#page=18", + # Step 3, question 5: qualifying child of another person. + "https://tax.illinois.gov/content/dam/soi/en/web/tax/forms/incometax/documents/currentyear/individual/il-1040-schedule-il-e-eic-instr.pdf#page=5", ) defined_for = StateCode.IL def formula(tax_unit, period, parameters): p = parameters(period).gov.states.il.tax.income.credits.eitc + filer_is_qualifying_child = eitc_filer_is_qualifying_child_elsewhere( + tax_unit, period + ) if not p.expansion_in_effect: # Before 2023 the IL EIC is a percentage of the federal credit # allowed, with no age or ITIN route (35 ILCS 5/212(a); Schedule # IL-E/EIC Step 4, lines 5 and 6). - return tax_unit("eitc", period) * p.match + return tax_unit("eitc", period) * p.match * ~filer_is_qualifying_child person = tax_unit.members age = person("age", period) has_tin = person("has_tin", period) @@ -35,8 +44,16 @@ def formula(tax_unit, period, parameters): qualifying_child = person("is_eitc_qualifying_child", period) & has_tin child_count = tax_unit.sum(qualifying_child) filer_has_tin = tax_unit.sum(is_head_or_spouse & ~has_tin) == 0 - demographic_eligible = (child_count > 0) | tax_unit.any( - is_head_or_spouse & (age >= p.childless_min_age) + # The state extension waives only the identification and age rules. A + # filer without a qualifying child still must not be a dependent of + # another taxpayer (IRC 32(c)(1)(A)(ii)(III)); on a joint return + # neither spouse may be (Publication 596). + filer_is_dependent = tax_unit( + "head_or_spouse_is_dependent_elsewhere_without_filing_exception", period + ) + demographic_eligible = (child_count > 0) | ( + tax_unit.any(is_head_or_spouse & (age >= p.childless_min_age)) + & ~filer_is_dependent ) state_eitc = calculate_eitc_like_amount( tax_unit, @@ -46,4 +63,4 @@ def formula(tax_unit, period, parameters): demographic_eligible, filer_has_tin, ) - return state_eitc * p.match + return state_eitc * p.match * ~filer_is_qualifying_child diff --git a/policyengine_us/variables/gov/states/il/tax/income/credits/il_income_tax_rebate.py b/policyengine_us/variables/gov/states/il/tax/income/credits/il_income_tax_rebate.py index 81d6e9b65a1..de26ba3dd9d 100644 --- a/policyengine_us/variables/gov/states/il/tax/income/credits/il_income_tax_rebate.py +++ b/policyengine_us/variables/gov/states/il/tax/income/credits/il_income_tax_rebate.py @@ -29,7 +29,15 @@ def formula(tax_unit, period, parameters): p.amount.joint.calc(scale_agi), p.amount.other.calc(scale_agi), ) - dependent_count = tax_unit("tax_unit_dependents", period) + # $100 for each person claimed as a dependent on the 2021 federal + # return, which has none when a filer (or, if joint, either spouse) + # can be claimed (IRC 152(b)(1)). + filer_is_dependent = tax_unit( + "head_or_spouse_is_dependent_elsewhere_without_filing_exception", period + ) + dependent_count = where( + filer_is_dependent, 0, tax_unit("tax_unit_dependents", period) + ) capped_dependents = min_(dependent_count, p.max_dependents) dependent_amount = capped_dependents * p.amount.dependent return base_amount + dependent_amount diff --git a/policyengine_us/variables/gov/states/il/tax/income/credits/il_income_tax_rebate_eligible.py b/policyengine_us/variables/gov/states/il/tax/income/credits/il_income_tax_rebate_eligible.py index 3703c1f88a6..f81923d15c4 100644 --- a/policyengine_us/variables/gov/states/il/tax/income/credits/il_income_tax_rebate_eligible.py +++ b/policyengine_us/variables/gov/states/il/tax/income/credits/il_income_tax_rebate_eligible.py @@ -25,4 +25,12 @@ def formula(tax_unit, period, parameters): p.amount.joint.thresholds[1], p.amount.other.thresholds[1], ) - return federal_agi < income_threshold + # Section 212.1(a): a taxpayer "who is claimed as a dependent on + # another individual's return for that year, is ineligible". The + # exclusion turns on an actual claim and is per taxpayer, so a joint + # return qualifies while either spouse is not claimed. + person = tax_unit.members + filer = person("is_tax_unit_head_or_spouse", period) + claimed = person("claimed_as_dependent_on_another_return", period) + has_eligible_filer = tax_unit.any(filer & ~claimed) + return (federal_agi < income_threshold) & has_eligible_filer diff --git a/policyengine_us/variables/gov/states/il/tax/income/exemptions/il_dependent_exemption.py b/policyengine_us/variables/gov/states/il/tax/income/exemptions/il_dependent_exemption.py index 7e6634f23ef..5adfd415287 100644 --- a/policyengine_us/variables/gov/states/il/tax/income/exemptions/il_dependent_exemption.py +++ b/policyengine_us/variables/gov/states/il/tax/income/exemptions/il_dependent_exemption.py @@ -8,8 +8,19 @@ class il_dependent_exemption(Variable): unit = USD definition_period = YEAR defined_for = StateCode.IL + reference = ( + # 35 ILCS 5/204(c): an exemption for each exemption "allowable" under + # IRC 151. + "https://www.ilga.gov/Documents/legislation/ilcs/documents/003500050K204.htm", + "https://www.law.cornell.edu/uscode/text/26/152#b_1", + ) def formula(tax_unit, period, parameters): amount = parameters(period).gov.states.il.tax.income.exemption.dependent - - return amount * tax_unit("tax_unit_dependents", period) + # A return on which the filer (or, if joint, either spouse) can be + # claimed as a dependent has no dependents (IRC 152(b)(1)). + filer_is_dependent = tax_unit( + "head_or_spouse_is_dependent_elsewhere_without_filing_exception", period + ) + dependents = tax_unit("tax_unit_dependents", period) + return amount * where(filer_is_dependent, 0, dependents) diff --git a/policyengine_us/variables/gov/states/il/tax/income/exemptions/il_personal_exemption_eligibility_status.py b/policyengine_us/variables/gov/states/il/tax/income/exemptions/il_personal_exemption_eligibility_status.py index 7478d29c8ae..ddfab3b36e0 100644 --- a/policyengine_us/variables/gov/states/il/tax/income/exemptions/il_personal_exemption_eligibility_status.py +++ b/policyengine_us/variables/gov/states/il/tax/income/exemptions/il_personal_exemption_eligibility_status.py @@ -15,6 +15,7 @@ class il_personal_exemption_eligibility_status(Variable): label = "Whether The Tax Unit Is Eligible For The Illinois Personal Exemption" definition_period = YEAR defined_for = StateCode.IL + reference = "https://ilga.gov/documents/legislation/publicacts/103/PDF/103-0009.pdf#page=357" def formula(tax_unit, period, parameters): personal_eligibility_amount = parameters( @@ -29,46 +30,47 @@ def formula(tax_unit, period, parameters): joint, 2, 1 ) - # Then, determine whether either the head or the spouse of the - # tax unit is claimable as a dependent in another unit - claimable_count = add( - tax_unit, - period, - ["head_is_dependent_elsewhere", "spouse_is_dependent_elsewhere"], - ) + # Count actual dependent claims among the head and spouse, as required + # by 35 ILCS 5/204(b). + person = tax_unit.members + head_or_spouse = person("is_tax_unit_head_or_spouse", period) + claimed_elsewhere = person("claimed_as_dependent_on_another_return", period) + claimed_count = tax_unit.sum(head_or_spouse & claimed_elsewhere) il_base_income = tax_unit("il_base_income", period) # Criteria for complete ineligibility ineligible = ( ( ~joint - & (claimable_count > 0) + & (claimed_count > 0) & (il_base_income > tax_unit_personal_eligibility_amount) ) | ( joint - & (claimable_count > 1) + & (claimed_count > 1) & (il_base_income > tax_unit_personal_eligibility_amount) ) | ( joint - & (claimable_count == 2) + & (claimed_count == 2) & (il_base_income > tax_unit_personal_eligibility_amount * 2) ) ) - # Criteria for partial ineligibility + # Use one basic amount for the joint base-income threshold when only one + # spouse is claimed. See the 2025 IL-1040 Line 10a chart. + # https://tax.illinois.gov/content/dam/soi/en/web/tax/forms/incometax/documents/currentyear/individual/il-1040-instr.pdf#page=8 partner_ineligible = ( ( joint - & (claimable_count == 1) - & (il_base_income > tax_unit_personal_eligibility_amount) + & (claimed_count == 1) + & (il_base_income > personal_eligibility_amount) ) - | (~joint & (claimable_count == 0)) + | (~joint & (claimed_count == 0)) | ( ~joint - & (claimable_count == 1) - & (il_base_income < tax_unit_personal_eligibility_amount) + & (claimed_count == 1) + & (il_base_income <= tax_unit_personal_eligibility_amount) ) ) diff --git a/policyengine_us/variables/gov/states/in/tax/income/deductions/in_nonpublic_school_deduction.py b/policyengine_us/variables/gov/states/in/tax/income/deductions/in_nonpublic_school_deduction.py index 1792573136e..ba580d43766 100644 --- a/policyengine_us/variables/gov/states/in/tax/income/deductions/in_nonpublic_school_deduction.py +++ b/policyengine_us/variables/gov/states/in/tax/income/deductions/in_nonpublic_school_deduction.py @@ -8,15 +8,23 @@ class in_nonpublic_school_deduction(Variable): definition_period = YEAR unit = USD reference = ( - "http://iga.in.gov/legislative/laws/2021/ic/titles/006#6-3-2-22" # (d)(1) + "http://iga.in.gov/legislative/laws/2021/ic/titles/006#6-3-2-22", # (d)(1) + # Information Bulletin 107: the child must qualify as the taxpayer's + # dependent under IRC 152. + "https://www.in.gov/dor/files/ib107.pdf#page=1", + "https://www.law.cornell.edu/uscode/text/26/152#b_1", ) defined_for = StateCode.IN def formula(tax_unit, period, parameters): p = parameters(period).gov.states["in"].tax.income.deductions.nonpublic_school - children = add(tax_unit, period, ["is_in_k12_nonpublic_school"]) - # Law specifices dependent children who attended a nonpublic school in Indiana - # for 180 days or more and for whom non-reimbursed education expenditures were made; - # using a national var here to save mem - - return children * p.amount + # IC 6-3-2-22 limits the deduction to the taxpayer's dependent + # children. School attendance proxies qualifying education expenses. + person = tax_unit.members + dependent = person("is_tax_unit_dependent", period) + attends_nonpublic_school = person("is_in_k12_nonpublic_school", period) + children = tax_unit.sum(dependent & attends_nonpublic_school) + filer_is_dependent = tax_unit( + "head_or_spouse_is_dependent_elsewhere_without_filing_exception", period + ) + return where(filer_is_dependent, 0, children) * p.amount diff --git a/policyengine_us/variables/gov/states/in/tax/income/exemptions/in_base_exemptions.py b/policyengine_us/variables/gov/states/in/tax/income/exemptions/in_base_exemptions.py index b6d0e72c547..c84b959325e 100644 --- a/policyengine_us/variables/gov/states/in/tax/income/exemptions/in_base_exemptions.py +++ b/policyengine_us/variables/gov/states/in/tax/income/exemptions/in_base_exemptions.py @@ -8,10 +8,28 @@ class in_base_exemptions(Variable): unit = USD definition_period = YEAR reference = ( - "http://iga.in.gov/legislative/laws/2021/ic/titles/006#6-3-1-3.5" # (a)(3)-(4) + "http://iga.in.gov/legislative/laws/2021/ic/titles/006#6-3-1-3.5", # (a)(3)-(4) + # Information Bulletin 117: the filer's own exemption is allowed "even + # if the individual can be claimed as a dependent", while dependents + # follow federal rules. + "https://www.in.gov/dor/files/ib117.pdf#page=2", + "https://www.law.cornell.edu/uscode/text/26/152#b_1", ) defined_for = StateCode.IN def formula(tax_unit, period, parameters): p = parameters(period).gov.states["in"].tax.income.exemptions - return tax_unit("tax_unit_size", period) * p.base.amount + size = tax_unit("tax_unit_size", period) + dependents = tax_unit("tax_unit_dependents", period) + # Each filer keeps the $1,000 exemption even when another taxpayer can + # claim them, but a return on which the filer (or, if joint, either + # spouse) can be claimed as a dependent has no dependents (IRC + # 152(b)(1)). + filer_is_dependent = tax_unit( + "head_or_spouse_is_dependent_elsewhere_without_filing_exception", period + ) + # Indiana treats the separate-filer spouse allowance as a personal + # exemption even when the spouse is listed with dependents. + spouse_allowances = add(tax_unit, period, ["in_is_exempt_separate_spouse"]) + exemptions = size - filer_is_dependent * (dependents - spouse_allowances) + return exemptions * p.base.amount diff --git a/policyengine_us/variables/gov/states/in/tax/income/exemptions/in_is_exempt_separate_spouse.py b/policyengine_us/variables/gov/states/in/tax/income/exemptions/in_is_exempt_separate_spouse.py new file mode 100644 index 00000000000..6d831c892fa --- /dev/null +++ b/policyengine_us/variables/gov/states/in/tax/income/exemptions/in_is_exempt_separate_spouse.py @@ -0,0 +1,36 @@ +from policyengine_us.model_api import * + + +class in_is_exempt_separate_spouse(Variable): + value_type = bool + entity = Person + definition_period = YEAR + label = "Spouse listed for the Indiana separate-filer exemption" + documentation = ( + "Whether this person is listed as a dependent on their spouse's " + "separate return to claim Indiana's zero-AGI spouse allowance. " + "Link the spouses in the same marital unit and report the listed " + "spouse's federal AGI in spouse_separate_adjusted_gross_income." + ) + reference = "https://www.in.gov/dor/files/ib117.pdf#page=2" + defined_for = StateCode.IN + + def formula(person, period, parameters): + tax_unit = person.tax_unit + filing_status = tax_unit("filing_status", period) + separate = filing_status == filing_status.possible_values.SEPARATE + spouse_agi = tax_unit("spouse_separate_adjusted_gross_income", period) + + marital_unit = person.marital_unit.reference_entity.members_entity_id + head = person("is_tax_unit_head", period) + head_marital_unit = tax_unit.max(where(head, marital_unit, -1)) + is_head_partner = (marital_unit == head_marital_unit) & ( + person.marital_unit.nb_persons() == 2 + ) + return ( + separate + & (spouse_agi == 0) + & person("is_tax_unit_dependent", period) + & ~head + & is_head_partner + ) diff --git a/policyengine_us/variables/gov/states/in/tax/income/exemptions/in_is_qualifying_dependent_child.py b/policyengine_us/variables/gov/states/in/tax/income/exemptions/in_is_qualifying_dependent_child.py index 77457b04214..77e171ee731 100644 --- a/policyengine_us/variables/gov/states/in/tax/income/exemptions/in_is_qualifying_dependent_child.py +++ b/policyengine_us/variables/gov/states/in/tax/income/exemptions/in_is_qualifying_dependent_child.py @@ -7,13 +7,15 @@ class in_is_qualifying_dependent_child(Variable): label = "Indiana additional exemption qualifying dependent child" definition_period = YEAR reference = ( - "http://iga.in.gov/legislative/laws/2021/ic/titles/006#6-3-1-3.5" # (5)(B)(i) + "http://iga.in.gov/legislative/laws/2021/ic/titles/006#6-3-1-3.5", # (5)(B)(i) + "https://www.in.gov/dor/files/ib117.pdf#page=2", + "https://www.law.cornell.edu/uscode/text/26/152#b_1", ) defined_for = StateCode.IN def formula(person, period, parameters): dependent = person("is_tax_unit_dependent", period) - age = person("age", period) + age = np.floor(person("age", period)) student = person("is_full_time_student", period) max_ages = ( parameters(period) @@ -22,4 +24,9 @@ def formula(person, period, parameters): ) max_age = where(student, max_ages.student, max_ages.non_student) age_qualifies = age <= max_age - return dependent & age_qualifies + # A return on which the filer (or, if joint, either spouse) can be + # claimed as a dependent has no dependents (IRC 152(b)(1)). + filer_is_dependent = person.tax_unit( + "head_or_spouse_is_dependent_elsewhere_without_filing_exception", period + ) + return dependent & age_qualifies & ~filer_is_dependent diff --git a/policyengine_us/variables/household/demographic/person/eitc_qualifying_child_claimant_filing_exception.py b/policyengine_us/variables/household/demographic/person/eitc_qualifying_child_claimant_filing_exception.py new file mode 100644 index 00000000000..7e2fbd36def --- /dev/null +++ b/policyengine_us/variables/household/demographic/person/eitc_qualifying_child_claimant_filing_exception.py @@ -0,0 +1,16 @@ +from policyengine_us.model_api import * + + +class eitc_qualifying_child_claimant_filing_exception(Variable): + value_type = bool + entity = Person + definition_period = YEAR + label = "EITC qualifying-child claimant meets the filing exception" + documentation = ( + "Whether every other person for whom the filer meets the EITC " + "qualifying-child tests is not required to file and either does not " + "file or files only to recover withheld income tax or estimated tax. " + "Set this independently of the filing exception for people who can " + "claim the filer as a dependent." + ) + reference = "https://www.irs.gov/pub/irs-prior/p596--2025.pdf#page=16" diff --git a/policyengine_us/variables/household/demographic/person/is_eitc_qualifying_child_elsewhere.py b/policyengine_us/variables/household/demographic/person/is_eitc_qualifying_child_elsewhere.py new file mode 100644 index 00000000000..1f421998b8b --- /dev/null +++ b/policyengine_us/variables/household/demographic/person/is_eitc_qualifying_child_elsewhere.py @@ -0,0 +1,15 @@ +from policyengine_us.model_api import * + + +class is_eitc_qualifying_child_elsewhere(Variable): + value_type = bool + entity = Person + definition_period = YEAR + label = "Meets EITC qualifying-child tests for another taxpayer" + documentation = ( + "Whether the person meets the EITC relationship, age, residency and " + "joint-return tests for another taxpayer. Set this fact before " + "applying eitc_qualifying_child_claimant_filing_exception. The EITC tests " + "do not require an actual dependent claim or a support test." + ) + reference = "https://www.irs.gov/pub/irs-prior/p596--2025.pdf#page=16" diff --git a/source_conflicts/candidates.yaml b/source_conflicts/candidates.yaml index 0fcf676e342..a0b2bf07a27 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -1991,14 +1991,17 @@ candidates: example: In 2025, $10,000 AGI and one age-4 child give $1,200 CTC and $3,273 family credit under the statutory reading, versus $0 for both. pe_us: - follows: conflicting-source + follows: statute code: + - policyengine_us/parameters/gov/states/co/tax/income/credits/ctc/eligible_child.yaml - policyengine_us/variables/gov/states/co/tax/income/credits/ctc/co_ctc_eligible_child.py + - policyengine_us/variables/gov/states/co/tax/income/credits/family_affordability/co_family_affordability_credit.py prs: - https://github.com/PolicyEngine/policyengine-us/pull/10049 state: ruled - note: 'The October 2026 statute-first ruling requires changing the exclusion if the statutory inference is confirmed; - verify the incorporation and guidance scope. Code not yet on main: co_family_affordability_credit.' + note: >- + From 2024, PolicyEngine keeps the qualifying-child route for both credits when a filer is claimable. + The child tax credit uses is_child_dependent, and the family affordability credit uses is_qualifying_child_dependent. - id: us-co:claimable-filer-disabled-child-care-credit program: income-tax years: @@ -2020,13 +2023,15 @@ candidates: example: In 2025, $10,000 AGI, $1,000 care expenses and zero federal liability give min(0.25 × $1,000, $500) = $250 under the form reading, versus $0. pe_us: - follows: conflicting-source - code: [] + follows: statute + code: + - policyengine_us/variables/gov/states/co/tax/income/credits/cdcc/co_low_income_cdcc.py prs: - https://github.com/PolicyEngine/policyengine-us/pull/10049 state: ruled - note: 'The October 2026 statute-first ruling requires changing the $250 result if the complete-dependent reading - is confirmed; resolve whether the statute itself permits the exception. Code not yet on main: co_low_income_cdcc.' + note: >- + PolicyEngine requires a qualifying child dependent under 13 and applies the filer and spouse + dependency check even when the federal care calculation counts the child as eligible. - id: us-co:deduction-addback-agi-boundary program: income-tax years: @@ -2171,12 +2176,14 @@ candidates: $39, half the $78 table EITC; the cited form is for 2025. pe_us: follows: statute - code: [] + code: + - policyengine_us/variables/gov/states/co/tax/income/credits/eitc/co_eitc.py prs: - https://github.com/PolicyEngine/policyengine-us/pull/10049 state: ruled - note: The October 2026 ruling retains the statutory bar; verify the weak literal joint-return interpretation and - obtain a corresponding 2025 example. + note: >- + PolicyEngine applies the childless dependency bar to both the ITIN and under-25 routes. + In the dependency question, Colorado directs filers to IRS Publication 596 Rule 12. - id: us-co:leap-catch-all-income program: liheap years: @@ -4659,13 +4666,16 @@ candidates: example: The 2021 joint-return case with AGI $0 and one claimed spouse reports $100, $50 or $0 under alternative mixed-spouse readings; no official guidance establishes those allocation alternatives. pe_us: - follows: unknown - code: [] + follows: statute + code: + - policyengine_us/variables/gov/states/il/tax/income/credits/il_income_tax_rebate_eligible.py + - policyengine_us/variables/gov/states/il/tax/income/credits/il_income_tax_rebate.py prs: - https://github.com/PolicyEngine/policyengine-us/pull/10049 state: ruled - note: 'Ruled statute-first in October 2026; establish the rebate''s dependency input and resolve mixed-spouse - allocation separately. Code not yet on main: il_income_tax_rebate_eligible.' + note: >- + PolicyEngine lets an otherwise eligible couple receive the full joint base amount when another + taxpayer claims just one spouse. It applies the federal dependency rules separately to the add-on. - id: us-il:ctc-qualifying-child-of-a-claimable-filer program: income-tax years: @@ -4759,12 +4769,14 @@ candidates: example: The 2025 childless joint-return case with $1,000 earned income gives $0 versus $16. pe_us: follows: statute - code: [] + code: + - policyengine_us/variables/gov/states/il/tax/income/credits/il_eitc.py prs: - https://github.com/PolicyEngine/policyengine-us/pull/10049 state: ruled - note: Ruled statute-first in October 2026; verify the incorporated dependency bar and annual questionnaire routing, - including the 2026 draft. + note: >- + PolicyEngine applies the childless dependency bar in the Illinois expansion from 2023. + In the 2025 instructions, joint filers skip questions 5 and 6 before the Expanded EITC Worksheet. - id: us-il:msp-exemption-applicant-without-income program: medicare-savings-programs years: @@ -4854,19 +4866,25 @@ candidates: - kind: instructions citation: IL-1040 instructions, line C (2021 p.6; 2025 p.6) url: https://tax.illinois.gov/content/dam/soi/en/web/tax/forms/incometax/documents/currentyear/individual/il-1040-instr.pdf#page=6 + - kind: instructions + citation: 2025 IL-1040 instructions, Line 10a chart, p.8 + url: https://tax.illinois.gov/content/dam/soi/en/web/tax/forms/incometax/documents/currentyear/individual/il-1040-instr.pdf#page=8 readings: statute: A claimable but unclaimed filer retains the exemption. other: Claimability alone denies the exemption. example: A 2025 single filer with $10,000 employment income who is claimable but unclaimed receives a $2,850 exemption versus $0. pe_us: - follows: conflicting-source - code: [] + follows: statute + code: + - policyengine_us/variables/gov/states/il/tax/income/exemptions/il_personal_exemption_eligibility_status.py prs: - https://github.com/PolicyEngine/policyengine-us/pull/10049 state: ruled - note: 'Ruled statute-first in October 2026; the rule requires changing claimability to actual claim, after confirming - the statutory text reproduced in the administrative rule. Code not yet on main: il_personal_exemption.' + note: >- + PolicyEngine counts actual claims on the filer and spouse. When another taxpayer claims + exactly one spouse on a joint return, PolicyEngine compares base income with one basic amount, + consistent with the Line 10a chart. - id: us-il:scretd-household-income-nontaxable-pension program: property-tax-deferral years: