diff --git a/changelog.d/or-federal-tax-subtraction-worksheet.fixed.md b/changelog.d/or-federal-tax-subtraction-worksheet.fixed.md new file mode 100644 index 00000000000..99c2ee6429b --- /dev/null +++ b/changelog.d/or-federal-tax-subtraction-worksheet.fixed.md @@ -0,0 +1 @@ +Net the premium tax credit out of Oregon's federal tax liability subtraction, and stop counting the employee payroll tax on unreported tips and wages. diff --git a/policyengine_us/tests/core/test_or_federal_tax_liability_subtraction_invariants.py b/policyengine_us/tests/core/test_or_federal_tax_liability_subtraction_invariants.py new file mode 100644 index 00000000000..5e6ecb34b91 --- /dev/null +++ b/policyengine_us/tests/core/test_or_federal_tax_liability_subtraction_invariants.py @@ -0,0 +1,162 @@ +"""Oregon's federal tax liability subtraction follows ORS 316.685. + +ORS 316.680(1)(b) and 316.685. The subtraction is federal tax after +nonrefundable credits plus other income taxes, including the net investment +income tax (26 U.S.C. 1411(a)(1)), less the employee payroll tax on unreported +tips and wages (316.685(3)(a)), less every federal refundable credit except the +earned income credit (316.685(1)(b)) and less the premium tax credit, floored at +zero and capped by a schedule that falls with federal AGI. With T the federal +tax before refundable credits and U the unreported payroll tax, these +properties hold for every input: + +1. 0 <= subtraction <= min(max(0, T - U), cap(AGI)). +2. The earned income credit never changes it, and neither does the net + investment income tax beyond its share of T. Outside 2021 neither does the + child and dependent care credit, which is refundable only in 2021. +3. While the cap does not bind, raising a reducing credit or U by d lowers it + by exactly min(d, slack), where slack is how far the uncapped amount sits + above zero; where the cap binds, it never rises. The reducing credits are + the premium tax credit, the additional child tax credit and the refundable + payroll tax credit every year, and the child and dependent care credit in + 2021. +4. Raising T by d raises it by at most d, and never lowers it. + +Each Hypothesis example evaluates a batch of tax units and their variants in +one vectorized simulation. +""" + +import numpy as np +import pytest +from hypothesis import HealthCheck, given, settings +from hypothesis import strategies as st + +from policyengine_us import Simulation + +TOLERANCE = 0.01 +FILING_STATUSES = ("SINGLE", "JOINT", "HEAD_OF_HOUSEHOLD", "SEPARATE") +CREDITS = ( + "eitc", + "refundable_ctc", + "refundable_american_opportunity_credit", + "refundable_payroll_tax_credit", + "assigned_aca_ptc", + "recovery_rebate_credit", + "cdcc", +) +REDUCING = ( + "assigned_aca_ptc", + "refundable_ctc", + "refundable_payroll_tax_credit", + "unreported_payroll_tax", +) +VARIANTS = ( + "base", + "eitc", + "net_investment_income_tax", + "cdcc", + *REDUCING, + "tax", +) + + +@st.composite +def tax_unit(draw): + return { + "filing_status": draw(st.sampled_from(FILING_STATUSES)), + "adjusted_gross_income": draw(st.integers(0, 200_000)), + "income_tax_before_refundable_credits": draw(st.integers(3_000, 20_000)), + "net_investment_income_tax": draw(st.integers(0, 2_000)), + "unreported_payroll_tax": draw(st.integers(0, 1_000)), + **{credit: draw(st.integers(0, 1_000)) for credit in CREDITS}, + "delta": draw(st.integers(1, 5_000)), + } + + +def _run(units, year): + situation = {"people": {}, "tax_units": {}, "households": {}} + rows = [] + for i, unit in enumerate(units): + for variant in VARIANTS: + inputs = {k: v for k, v in unit.items() if k != "delta"} + if variant == "tax": + inputs["income_tax_before_refundable_credits"] += unit["delta"] + elif variant != "base": + inputs[variant] += unit["delta"] + name = f"{i}_{variant}" + situation["people"][name] = {"age": {year: 40}} + situation["tax_units"][name] = { + "members": [name], + **{k: {year: v} for k, v in inputs.items()}, + } + situation["households"][name] = { + "members": [name], + "state_code": {year: "OR"}, + } + rows.append((i, variant)) + simulation = Simulation(situation=situation) + values = simulation.calculate("or_federal_tax_liability_subtraction", year) + result = {} + for (i, variant), value in zip(rows, values): + result.setdefault(i, {})[variant] = float(value) + # Each unit's cap at its own AGI, from the simulation's own parameters. + p = ( + simulation.tax_benefit_system.parameters(f"{year}-01-01") + .gov.states["or"] + .tax.income.subtractions.federal_tax_liability.cap + ) + schedules = { + "SINGLE": p.single, + "JOINT": p.joint, + "HEAD_OF_HOUSEHOLD": p.head_of_household, + "SEPARATE": p.separate, + } + caps = [ + float( + schedules[unit["filing_status"]].calc( + np.array([float(unit["adjusted_gross_income"])]) + )[0] + ) + for unit in units + ] + return result, caps + + +@pytest.mark.parametrize("year", [2020, 2021, 2025]) +@settings( + max_examples=4, + deadline=None, + derandomize=True, + suppress_health_check=[HealthCheck.too_slow, HealthCheck.data_too_large], +) +@given(units=st.lists(tax_unit(), min_size=6, max_size=6)) +def test_or_federal_tax_liability_subtraction_invariants(year, units): + result, caps = _run(units, year) + for i, unit in enumerate(units): + r = result[i] + base, delta, cap = r["base"], unit["delta"], caps[i] + # Below the cap the subtraction is the uncapped amount itself, so its + # slack above zero is the subtraction. + uncapped = cap - base > TOLERANCE + # 1. Bounds. + assert -TOLERANCE <= base + assert base <= TOLERANCE + max( + 0, + unit["income_tax_before_refundable_credits"] + - unit["unreported_payroll_tax"], + ) + assert base <= cap + TOLERANCE + # 2. Amounts that never change it. + assert r["eitc"] == pytest.approx(base, abs=TOLERANCE) + assert r["net_investment_income_tax"] == pytest.approx(base, abs=TOLERANCE) + reducing = list(REDUCING) + if year == 2021: + reducing.append("cdcc") + else: + assert r["cdcc"] == pytest.approx(base, abs=TOLERANCE) + # 3. A reducing amount lowers it dollar for dollar to zero. + for name in reducing: + assert -TOLERANCE <= r[name] <= base + TOLERANCE + if uncapped: + assert r[name] == pytest.approx(base - min(delta, base), abs=TOLERANCE) + # 4. More federal tax raises it by at most the increase. + assert base - TOLERANCE <= r["tax"] <= base + delta + TOLERANCE diff --git a/policyengine_us/tests/policy/baseline/gov/states/or/tax/income/integration.yaml b/policyengine_us/tests/policy/baseline/gov/states/or/tax/income/integration.yaml index b026b0ab870..fd5e0a324ef 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/or/tax/income/integration.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/or/tax/income/integration.yaml @@ -139,6 +139,9 @@ tax_units: tax_unit: members: [person1] + # No marketplace premium tax credit, so Oregon subtracts the whole + # federal liability (Publication OR-17 nets the credit out). + aca_ptc: 0 households: household: members: [person1] @@ -198,6 +201,9 @@ tax_units: tax_unit: members: [person1] + # No marketplace premium tax credit, so Oregon subtracts the whole + # federal liability (Publication OR-17 nets the credit out). + aca_ptc: 0 households: household: members: [person1] @@ -227,6 +233,9 @@ tax_units: tax_unit: members: [person1] + # No marketplace premium tax credit, so Oregon subtracts the whole + # federal liability (Publication OR-17 nets the credit out). + aca_ptc: 0 or_tax_before_credits_in_prior_year: 2_000 households: household: @@ -252,6 +261,9 @@ tax_units: tax_unit: members: [person1] + # No marketplace premium tax credit, so Oregon subtracts the whole + # federal liability (Publication OR-17 nets the credit out). + aca_ptc: 0 or_tax_before_credits_in_prior_year: 2_000 households: household: diff --git a/policyengine_us/tests/policy/baseline/gov/states/or/tax/income/subtractions/or_federal_tax_liability_subtraction.yaml b/policyengine_us/tests/policy/baseline/gov/states/or/tax/income/subtractions/or_federal_tax_liability_subtraction.yaml index fe5b498c964..f858d6114f1 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/or/tax/income/subtractions/or_federal_tax_liability_subtraction.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/or/tax/income/subtractions/or_federal_tax_liability_subtraction.yaml @@ -4,7 +4,7 @@ state_code: OR filing_status: SINGLE adjusted_gross_income: 80_000 - income_tax: 10_000 + income_tax_before_refundable_credits: 10_000 eitc: 0 output: or_federal_tax_liability_subtraction: 7_050 @@ -15,7 +15,8 @@ state_code: OR filing_status: SINGLE adjusted_gross_income: 80_000 - income_tax: 6_000 + # 6,000 of federal income tax plus the 1,000 EITC it nets out. + income_tax_before_refundable_credits: 7_000 eitc: 1_000 output: or_federal_tax_liability_subtraction: 7_000 @@ -26,7 +27,7 @@ state_code: OR filing_status: SINGLE adjusted_gross_income: 145_000 - income_tax: 10_000 + income_tax_before_refundable_credits: 10_000 eitc: 0 output: or_federal_tax_liability_subtraction: 0 @@ -37,7 +38,7 @@ state_code: OR filing_status: SEPARATE adjusted_gross_income: 80_000 - income_tax: 10_000 + income_tax_before_refundable_credits: 10_000 eitc: 0 output: or_federal_tax_liability_subtraction: 3_525 @@ -48,7 +49,7 @@ state_code: OR filing_status: SEPARATE adjusted_gross_income: 145_000 - income_tax: 10_000 + income_tax_before_refundable_credits: 10_000 eitc: 0 output: or_federal_tax_liability_subtraction: 0 @@ -59,8 +60,8 @@ state_code: OR filing_status: JOINT adjusted_gross_income: 80_000 - income_tax: 10_000 - eitc: 0 + income_tax_before_refundable_credits: 10_000 + eitc: 0 output: or_federal_tax_liability_subtraction: 7_050 @@ -70,7 +71,7 @@ state_code: OR filing_status: JOINT adjusted_gross_income: 290_000 - income_tax: 10_000 + income_tax_before_refundable_credits: 10_000 eitc: 0 output: or_federal_tax_liability_subtraction: 0 @@ -85,7 +86,7 @@ state_code: OR filing_status: SINGLE adjusted_gross_income: 80_000 - income_tax: 10_000 + income_tax_before_refundable_credits: 10_000 eitc: 0 output: or_federal_tax_liability_subtraction: 8_750 @@ -96,7 +97,7 @@ state_code: OR filing_status: JOINT adjusted_gross_income: 255_000 - income_tax: 30_000 + income_tax_before_refundable_credits: 30_000 eitc: 0 output: or_federal_tax_liability_subtraction: 7_000 @@ -107,12 +108,232 @@ state_code: OR filing_status: SEPARATE adjusted_gross_income: 80_000 - income_tax: 10_000 + income_tax_before_refundable_credits: 10_000 eitc: 0 output: # 50% x 8,750 or_federal_tax_liability_subtraction: 4_375 +# ORS 316.685(1)(b) leaves out only the earned income credit, so every other +# federal refundable credit reduces the subtraction, and so does the premium tax +# credit (2025 Publication OR-17, PDF page 71: "Federal income tax credits, +# except for the EITC, reduce your federal tax subtraction."). The net +# investment income tax, a Subtitle A income tax (26 U.S.C. 1411(a)(1)), stays +# in; the employee payroll tax on unreported tips and wages comes out (ORS +# 316.685(3)(a)). Floor at zero, then apply the AGI cap. +- name: Case 11, 2025 premium tax credit reduces the subtraction. + period: 2025 + input: + state_code: OR + filing_status: SINGLE + adjusted_gross_income: 45_000 + income_tax_before_refundable_credits: 4_000 + assigned_aca_ptc: 1_500 + eitc: 0 + output: + # 4,000 - 1,500 + or_federal_tax_liability_subtraction: 2_500 + +- name: Case 12, 2025 additional child tax credit reduces the subtraction but the EITC does not. + period: 2025 + input: + state_code: OR + filing_status: JOINT + adjusted_gross_income: 60_000 + # Federal tax after nonrefundable credits is 0; a 1,000 additional tax on + # an early retirement plan distribution remains. + income_tax_before_refundable_credits: 1_000 + refundable_ctc: 600 + assigned_aca_ptc: 0 + eitc: 500 + output: + # 1,000 - 600 = 400. Counting the 500 EITC would give + # max(0, 1,000 - 600 - 500) = 0, and leaving out the additional child tax + # credit would give 1,000. + or_federal_tax_liability_subtraction: 400 + +- name: Case 13, 2025 credits above the liability floor the subtraction at zero. + period: 2025 + input: + state_code: OR + filing_status: SINGLE + adjusted_gross_income: 40_000 + income_tax_before_refundable_credits: 2_000 + refundable_american_opportunity_credit: 1_000 + assigned_aca_ptc: 1_500 + eitc: 0 + output: + # max(0, 2,000 - 1,000 - 1,500) + or_federal_tax_liability_subtraction: 0 + +- name: Case 14, 2025 net investment income tax stays in and unreported payroll tax comes out. + period: 2025 + input: + state_code: OR + filing_status: SINGLE + adjusted_gross_income: 90_000 + # Includes both taxes below. + income_tax_before_refundable_credits: 5_000 + net_investment_income_tax: 600 + unreported_payroll_tax: 400 + assigned_aca_ptc: 0 + eitc: 0 + output: + # 5,000 - 400; the 600 net investment income tax is not taken out. + or_federal_tax_liability_subtraction: 4_600 + +- name: Case 15, 2021 refundable child tax, recovery rebate and child care credits reduce the subtraction. + period: 2021 + input: + state_code: OR + filing_status: JOINT + adjusted_gross_income: 80_000 + income_tax_before_refundable_credits: 9_000 + refundable_ctc: 3_000 + recovery_rebate_credit: 2_800 + cdcc: 1_000 + assigned_aca_ptc: 0 + eitc: 0 + output: + # 9,000 - 3,000 - 2,800 - 1,000 + or_federal_tax_liability_subtraction: 2_200 + +- name: Case 16, 2020 recovery rebate credit and additional child tax credit reduce the subtraction. + period: 2020 + input: + state_code: OR + filing_status: JOINT + adjusted_gross_income: 50_000 + income_tax_before_refundable_credits: 4_000 + recovery_rebate_credit: 2_400 + refundable_ctc: 1_000 + assigned_aca_ptc: 0 + eitc: 0 + output: + # 4,000 - 2,400 - 1,000 + or_federal_tax_liability_subtraction: 600 + +- name: Case 17, 2026 premium tax, American Opportunity and additional child tax credits reduce the subtraction. + period: 2026 + input: + state_code: OR + filing_status: HEAD_OF_HOUSEHOLD + adjusted_gross_income: 70_000 + income_tax_before_refundable_credits: 6_000 + refundable_american_opportunity_credit: 1_000 + assigned_aca_ptc: 2_000 + refundable_ctc: 1_700 + eitc: 0 + output: + # 6,000 - 1,000 - 2,000 - 1,700 + or_federal_tax_liability_subtraction: 1_300 + +- name: Case 18, 2023 refundable payroll tax credit reduces the subtraction. + period: 2023 + input: + state_code: OR + filing_status: SINGLE + adjusted_gross_income: 60_000 + income_tax_before_refundable_credits: 3_000 + refundable_payroll_tax_credit: 500 + assigned_aca_ptc: 0 + eitc: 0 + output: + # 3,000 - 500 + or_federal_tax_liability_subtraction: 2_500 + +- name: Case 19, 2025 additional child tax credit offsets the early-distribution tax. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + employment_income: 20_000 + taxable_private_pension_income: 30_000 + person2: + age: 40 + person3: + age: 6 + person4: + age: 9 + tax_units: + tax_unit: + members: [person1, person2, person3, person4] + # 10% additional tax on the 30,000 early distribution. + qualified_retirement_penalty: 3_000 + # No marketplace coverage, so no premium tax credit. + aca_ptc: 0 + spm_units: + spm_unit: + members: [person1, person2, person3, person4] + households: + household: + members: [person1, person2, person3, person4] + state_code: OR + output: + adjusted_gross_income: 50_000 + # (50,000 - 31,500 standard deduction) x 10% + income_tax_before_credits: 1_850 + # 2 x 2,200 child tax credit less the 1,850 used against tax, within + # 2 x 1,700 and 15% x (20,000 - 2,500) = 2,625. + refundable_ctc: 2_550 + # 1,850 - 1,850 + 3,000 + income_tax_before_refundable_credits: 3_000 + # 3,000 - 2,550, within the 8,500 cap. The EITC does not reduce it. + or_federal_tax_liability_subtraction: 450 + +- name: Case 20, 2025 head of household keeps the net investment income tax when credits wipe out the regular tax. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 40 + long_term_capital_gains: 230_000 + person2: + age: 10 + tax_units: + tax_unit: + members: [person1, person2] + solar_electric_property_expenditures: 200_000 + spm_units: + spm_unit: + members: [person1, person2] + households: + household: + members: [person1, person2] + state_code: OR + output: + # (230,000 - 23,625 standard deduction - 64,750 at 0%) x 15% + income_tax_before_credits: 21_243.75 + # The child tax credit and the 60,000 clean energy credit, capped at tax. + income_tax_capped_non_refundable_credits: 21_243.75 + # 3.8% x (230,000 - 200,000) + net_investment_income_tax: 1_140 + # 1,140, within the 8,500 cap at 230,000. + or_federal_tax_liability_subtraction: 1_140 + +- name: Case 21, 2025 with no EITC on the federal refundable credit list, the code backs out none. + period: 2025 + input: + gov.irs.credits.refundable: + - refundable_american_opportunity_credit + - refundable_ctc + - recovery_rebate_credit + - refundable_payroll_tax_credit + - claim_of_right_credit + state_code: OR + filing_status: SINGLE + adjusted_gross_income: 40_000 + income_tax_before_refundable_credits: 3_000 + eitc: 1_000 + assigned_aca_ptc: 0 + output: + # income_tax_refundable_credits holds no EITC here, so the code backs out + # none: 3,000 - 0 = 3,000. Without the guard: 3,000 - (0 - 1,000) = 4,000. + or_federal_tax_liability_subtraction: 3_000 + - name: The section 1341 credit reduces the federal tax liability subtraction # ORS 316.680(1)(b) and 316.685(1) allow federal taxes accrued and # disregard only the EITC. Section 1341 relief reduces accrued tax. diff --git a/policyengine_us/tests/policy/contrib/harris/lift/middle_class_tax_credit.yaml b/policyengine_us/tests/policy/contrib/harris/lift/middle_class_tax_credit.yaml index 96b8e854e25..53c2637ab09 100644 --- a/policyengine_us/tests/policy/contrib/harris/lift/middle_class_tax_credit.yaml +++ b/policyengine_us/tests/policy/contrib/harris/lift/middle_class_tax_credit.yaml @@ -107,3 +107,32 @@ output: middle_class_tax_credit: 3_750 income_tax_refundable_credits: 3_750 + +- name: Oregon federal tax subtraction nets the reform's refundable credit + # The reform adds the credit to income_tax_refundable_credits, not to the + # gov.irs.credits.refundable list. Oregon's subtraction reads the federal + # total, so the credit reduces it as it reduces income_tax: the subtraction + # equals income_tax (2,153.37), not federal tax before the credit + # (3,871.50, the baseline value). + period: 2025 + reforms: policyengine_us.reforms.harris.lift.middle_class_tax_credit.middle_class_tax_credit + absolute_error_margin: 0.01 + input: + gov.contrib.harris.lift.middle_class_tax_credit.in_effect: true + people: + person1: + age: 35 + employment_income: 50_000 + tax_units: + tax_unit: + members: [person1] + aca_ptc: 0 + households: + household: + members: [person1] + state_code: OR + output: + middle_class_tax_credit: 1_718.13 + income_tax: 2_153.37 + or_federal_tax_liability_subtraction: 2_153.37 + or_income_tax: 3_014.64 diff --git a/policyengine_us/variables/gov/states/or/tax/income/subtractions/or_federal_tax_liability_subtraction.py b/policyengine_us/variables/gov/states/or/tax/income/subtractions/or_federal_tax_liability_subtraction.py index a6ddc91d824..f3b277c05fd 100644 --- a/policyengine_us/variables/gov/states/or/tax/income/subtractions/or_federal_tax_liability_subtraction.py +++ b/policyengine_us/variables/gov/states/or/tax/income/subtractions/or_federal_tax_liability_subtraction.py @@ -8,28 +8,68 @@ class or_federal_tax_liability_subtraction(Variable): unit = USD definition_period = YEAR reference = ( - "https://www.oregon.gov/dor/forms/FormsPubs/publication-or-17_101-431_2021.pdf#page=71", - "https://www.oregonlegislature.gov/bills_laws/ors/ors316.html", # ORS 316.680 and 316.685 - # ORS 316.680(1)(b) and 316.685(1), PDF pages 52, 54 + # ORS 316.680(1)(b), 316.685 and 316.695(3). + "https://www.oregonlegislature.gov/bills_laws/ors/ors316.html", + # ORS 316.680(1)(b) and 316.685(1), 2023 edition, PDF pages 52 and 54. "https://www.oregonlegislature.gov/bills_laws/Archive/2023ors316.pdf#page=52", + # 26 U.S.C. 1411(a)(1): the net investment income tax is imposed + # under Subtitle A. + "https://www.law.cornell.edu/uscode/text/26/1411#a_1", + # Publication OR-17, federal tax worksheet, Part A, the premium tax + # credit line (line 7, from 2025 line 8; 2021 line 11) and the 2021 + # credit lines 2 and 8 to 13. + "https://www.oregon.gov/dor/forms/FormsPubs/publication-or-17_101-431_2017.pdf#page=63", + "https://www.oregon.gov/dor/forms/FormsPubs/publication-or-17_101-431_2018.pdf#page=68", + "https://www.oregon.gov/dor/forms/FormsPubs/publication-or-17_101-431_2019.pdf#page=63", + # PDF pages 65-66 + "https://www.oregon.gov/dor/forms/FormsPubs/publication-or-17_101-431_2020.pdf#page=65", + # PDF pages 72-73 + "https://www.oregon.gov/dor/forms/FormsPubs/publication-or-17_101-431_2021.pdf#page=72", + "https://www.oregon.gov/dor/forms/FormsPubs/publication-or-17_101-431_2022.pdf#page=73", + "https://www.oregon.gov/dor/forms/FormsPubs/publication-or-17_101-431_2023.pdf#page=73", + "https://www.oregon.gov/dor/forms/FormsPubs/publication-or-17_101-431_2024.pdf#page=71", + # PDF pages 71-72 + "https://www.oregon.gov/dor/forms/FormsPubs/publication-or-17_101-431_2025.pdf#page=71", ) defined_for = StateCode.OR def formula(tax_unit, period, parameters): - # calculate Oregon concept of federal income tax - federal_itax = tax_unit("income_tax", period) - federal_eitc = tax_unit("eitc", period) - # ORS 316.685(1)(b) disregards EITC when computing federal taxes - # accrued. Section 1341 relief continues to reduce those taxes. - or_federal_income_tax = max_(0, federal_itax + federal_eitc) - # limit subtraction based on caps scaled to federal AGI - filing_status = tax_unit("filing_status", period) - status = filing_status.possible_values p = ( parameters(period) .gov.states["or"] - .tax.income.subtractions.federal_tax_liability.cap + .tax.income.subtractions.federal_tax_liability + ) + # Federal tax after nonrefundable credits plus the other taxes in + # income_tax_before_refundable_credits. The net investment income tax + # stays in: it is imposed under Subtitle A (26 U.S.C. 1411(a)(1)), and + # ORS 316.685(3) does not exclude it. The employee Social Security and + # Medicare tax on unreported tips and wages comes out (ORS + # 316.685(3)(a)). + federal_tax = tax_unit( + "income_tax_before_refundable_credits", period + ) - tax_unit("unreported_payroll_tax", period) + # Every federal refundable credit except the earned income credit + # reduces the liability (ORS 316.685(1)(b)), and so does the premium + # tax credit (Form 8962, line 24), which the federal list omits. Read + # the federal total, income_tax_refundable_credits, rather than the + # list, so credits that structural reforms add to that variable count + # too; back out the EITC only when the list carries it. The federal + # list, and so the total, includes the section 1341(a)(5) credit + # (claim_of_right_credit). Relief under section 1341(a)(4), an + # itemized deduction, already lowers + # income_tax_before_refundable_credits. Either way, section 1341 + # relief reduces the liability. + refundable = parameters(period).gov.irs.credits.refundable + eitc = tax_unit("eitc", period) if "eitc" in refundable else 0 + refundable_credits = ( + tax_unit("income_tax_refundable_credits", period) + - eitc + + tax_unit("assigned_aca_ptc", period) ) + or_federal_income_tax = max_(0, federal_tax - refundable_credits) + # limit subtraction based on caps scaled to federal AGI + filing_status = tax_unit("filing_status", period) + status = filing_status.possible_values federal_agi = tax_unit("adjusted_gross_income", period) cap = select( [ @@ -40,11 +80,11 @@ def formula(tax_unit, period, parameters): filing_status == status.SURVIVING_SPOUSE, ], [ - p.single.calc(federal_agi), - p.joint.calc(federal_agi), - p.head_of_household.calc(federal_agi), - p.separate.calc(federal_agi), - p.surviving_spouse.calc(federal_agi), + p.cap.single.calc(federal_agi), + p.cap.joint.calc(federal_agi), + p.cap.head_of_household.calc(federal_agi), + p.cap.separate.calc(federal_agi), + p.cap.surviving_spouse.calc(federal_agi), ], ) return min_(or_federal_income_tax, cap) diff --git a/source_conflicts/candidates.yaml b/source_conflicts/candidates.yaml index 12772c7bdde..528def1524c 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -8580,9 +8580,76 @@ candidates: - policyengine_us/variables/gov/states/or/tax/income/subtractions/or_federal_tax_liability_subtraction.py prs: - https://github.com/PolicyEngine/policyengine-us/pull/10038 + - https://github.com/PolicyEngine/policyengine-us/pull/10093 state: ruled - note: An October 2026 ruling followed the worksheet; under the later statute-first rule the code follows ORS - 316.685(1)(b), starting from federal income tax after all credits and adding back only the earned income credit. + note: An October 2026 ruling followed the worksheet; a 2026-10-20 ruling under the later statute-first rule chose + the statute, and the code follows ORS 316.685(1)(b). The formula subtracts every federal refundable credit except + the EITC, and gov.irs.credits.refundable lists the section 1341 credit, so that credit reduces the subtraction. + The worksheet's list conflicts with the statute. +- id: us-or:federal-tax-subtraction-niit + program: income-tax + years: + from: 2017 + to: 2025 + type: tax + question: Is the net investment income tax among the federal income taxes accrued that Oregon's federal-tax + subtraction allows, though the OR-17 worksheet's other-taxes line leaves it out? + sources: + - kind: statute + citation: ORS 316.680(1)(b) and 316.685 + url: https://www.oregonlegislature.gov/bills_laws/ors/ors316.html + - kind: statute + citation: 26 U.S.C. 1411(a)(1) + url: https://www.law.cornell.edu/uscode/text/26/1411#a_1 + - kind: worksheet + citation: 2025 OR-17 federal tax worksheet, Part A, PDF pp.71-72 (each year 2017-2025) + url: https://www.oregon.gov/dor/forms/FormsPubs/publication-or-17_101-431_2025.pdf#page=71 + readings: + statute: 26 U.S.C. 1411(a)(1) imposes the net investment income tax under Subtitle A, and the closed list in ORS + 316.685(3) excludes only payroll taxes and the self-employment tax (chapter 2), not chapter 2A, so the net + investment income tax counts. + other: The worksheet's other-taxes line does not include the net investment income tax. + pe_us: + follows: statute + code: + - policyengine_us/variables/gov/states/or/tax/income/subtractions/or_federal_tax_liability_subtraction.py + prs: + - https://github.com/PolicyEngine/policyengine-us/pull/10093 + state: ruled + note: The code follows the statute and keeps the net investment income tax in the federal tax it subtracts; the + worksheet's other-taxes line leaves it out. +- id: us-or:federal-tax-subtraction-unlisted-refundable-credits + program: income-tax + years: + from: 2017 + to: 2025 + type: tax + question: Do refundable credits the OR-17 worksheet does not list, such as the additional child tax credit outside + 2021 and the refundable payroll tax credit, reduce Oregon's federal-tax subtraction? + sources: + - kind: statute + citation: ORS 316.680(1)(b) and 316.685(1)(b) + url: https://www.oregonlegislature.gov/bills_laws/ors/ors316.html + - kind: guidance + citation: 2025 Publication OR-17, PDF p.71 + url: https://www.oregon.gov/dor/forms/FormsPubs/publication-or-17_101-431_2025.pdf#page=71 + - kind: worksheet + citation: 2025 OR-17 federal tax worksheet, Part A, PDF pp.71-72 (each year 2017-2025) + url: https://www.oregon.gov/dor/forms/FormsPubs/publication-or-17_101-431_2025.pdf#page=71 + readings: + statute: ORS 316.685(1)(b) leaves out only the earned income credit, so every other refundable credit reduces the + subtraction. + other: The publication's prose says credits other than the EITC reduce the subtraction, but the worksheet subtracts + only the credits it lists for each year. + pe_us: + follows: statute + code: + - policyengine_us/variables/gov/states/or/tax/income/subtractions/or_federal_tax_liability_subtraction.py + prs: + - https://github.com/PolicyEngine/policyengine-us/pull/10093 + state: ruled + note: The code follows the statute and subtracts every federal refundable credit except the EITC, plus the premium + tax credit, including credits the worksheet does not list, such as the additional child tax credit outside 2021. - id: us-or:liheap-final-payment-band-bound program: liheap years: