From 6ff4ce447782190bd7870ee8c1e9e3e8b09ff8b3 Mon Sep 17 00:00:00 2001 From: David Trimmer Date: Thu, 19 Nov 2026 17:12:35 -0500 Subject: [PATCH 1/2] Count the whole household's income in Oklahoma gross household income Oklahoma's sales tax and property tax credits test gross household income, which 68 O.S. 5012 and 2904(3) and Forms 538-S and 538-H define as the income of everyone living in the household. The model summed one tax unit. Each tax unit in a household now gets the total over every tax unit there. The source list also adds dependent care benefits, retirement account distributions, TANF, veterans' and disability benefits, scholarships, gambling winnings, excluded foreign earned income and the Oklahoma EITC (Form 538-S line 9 combines it with the federal credit), keeping the current-year convention for the credits. Co-Authored-By: Claude Opus 5.5 --- .../ok-gross-income-household.fixed.md | 1 + .../income/credits/gross_income_sources.yaml | 56 ++- .../test_state_estate_income_invariants.py | 11 +- .../states/ok/tax/income/ok_gross_income.yaml | 369 +++++++++++++++++- .../ok/tax/income/credits/ok_gross_income.py | 46 ++- 5 files changed, 469 insertions(+), 14 deletions(-) create mode 100644 changelog.d/ok-gross-income-household.fixed.md diff --git a/changelog.d/ok-gross-income-household.fixed.md b/changelog.d/ok-gross-income-household.fixed.md new file mode 100644 index 00000000000..f99171eed3e --- /dev/null +++ b/changelog.d/ok-gross-income-household.fixed.md @@ -0,0 +1 @@ +Oklahoma's gross household income for the sales tax and property tax credits now counts the income of everyone in the household, not just the tax unit, and adds dependent care benefits, retirement account distributions, TANF, veterans' and disability benefits, scholarships, gambling winnings, excluded foreign earned income and the Oklahoma earned income credit. diff --git a/policyengine_us/parameters/gov/states/ok/tax/income/credits/gross_income_sources.yaml b/policyengine_us/parameters/gov/states/ok/tax/income/credits/gross_income_sources.yaml index 7b62a0dbb94..fb80039842c 100644 --- a/policyengine_us/parameters/gov/states/ok/tax/income/credits/gross_income_sources.yaml +++ b/policyengine_us/parameters/gov/states/ok/tax/income/credits/gross_income_sources.yaml @@ -1,7 +1,14 @@ -description: Oklahoma counts these sources when determining gross income for its sales tax credit. +description: Oklahoma counts these sources in gross household income for its sales tax credit and property tax credit. values: 2021-01-01: - irs_employment_income + # Form 538-S line 1 counts wages "including nontaxable income from your + # W-2s", and its definition names "a dependent care reimbursement + # account" (2025 Form 511 packet, pages 50 and 52). Box 1 wages + # (irs_employment_income) leave these benefits out. Elective deferrals to + # a 401(k) or traditional IRA stay out: the definition excludes income + # "deferred for federal income tax purposes". + - dependent_care_employer_benefits - self_employment_income - sstb_self_employment_income - partnership_s_corp_income @@ -20,6 +27,14 @@ values: # or not, including military retired pay and survivor annuities, which # pension_income leaves out. - military_retirement_income + # Form 538-S line 6: "Other pensions, annuities, and Individual + # Retirement Accounts (IRAs)" (2025 Form 511 packet, page 50); deferred + # income counts "when distributed", and a Roth IRA's distributed earnings + # count (page 52). retirement_distributions covers IRA, 401(k), 403(b), + # SEP and Keogh distributions, which pension_income leaves out. It counts + # a Roth distribution in full, since the inputs don't separate returned + # contributions from earnings. + - retirement_distributions - debt_relief - total_unemployment_compensation - workers_compensation @@ -31,10 +46,41 @@ values: - ssi - ok_ssp - general_assistance + # 68 O.S. 2904(3) and 5012 and Form 538-S's definition: "public assistance + # payments" (Title 68, pages 1373 and 1635; 2025 Form 511 packet, page + # 52); Form 538-H line 10: public assistance (page 1). The sales tax + # credit denies the credit to TANF recipients (ok_stc), so this matters + # for the property tax credit. + - tanf + # 68 O.S. 2904(3) and 5012, OAC 710:50-15-96(c) and Form 538-S's + # definition: "veterans' disability compensation" (Title 68, pages 1373 + # and 1635; 2025 Form 511 packet, page 52). + - veterans_benefits + # Same sources: "loss-of-time insurance payments". + - disability_benefits + # Form 538-S's definition and Form 538-H's Part 2 instructions: "school + # grants or scholarships" (2025 Form 511 packet, page 52; Form 538-H, + # page 3). + - educational_assistance + # 68 O.S. 2904(3) and 5012: "income of every type, regardless of the + # source" (Title 68, pages 1373 and 1635); OAC 710:50-15-96(c): "any + # other type of income"; Form 538-S line 13, other income (2025 Form 511 + # packet, page 51). + - gambling_winnings + # 68 O.S. 2904(3) and 5012: income counts "whether such income was taxable + # or nontaxable for federal or state income tax purposes" (Title 68, + # pages 1373 and 1635); OAC 710:50-15-96(c). The IRC 911 exclusion leaves + # foreign earned income out of the wage inputs. + - section_911_excluded_income + # Form 538-S line 9: "Earned Income Credit (EIC) received in 2025 (if + # applicable, combine federal and Oklahoma amounts)" (2025 Form 511 + # packet, page 51). PolicyEngine counts the credits on the year's own + # return rather than the credits received during the year. - eitc + - ok_eitc metadata: - label: Oklahoma sales tax credit gross income sources + label: Oklahoma gross household income sources reference: - title: 2021 Form 511 instructions href: https://oklahoma.gov/content/dam/ok/en/tax/documents/forms/individuals/past-year/2021/511-Pkt-2021.pdf @@ -44,9 +90,11 @@ metadata: href: https://oklahoma.gov/content/dam/ok/en/tax/documents/forms/individuals/past-year/2023/511-Pkt.pdf - title: 2024 Form 511 instructions href: https://oklahoma.gov/content/dam/ok/en/tax/documents/forms/individuals/past-year/2024/511-Pkt-2024.pdf - - title: "2025 Form 511 packet, Form 538-S, Part 3 (taxable and nontaxable gross income, lines 1 to 14; line 6 other pensions and annuities) #page 50-51" + - title: "2025 Form 511 packet, Form 538-S, Part 3 (taxable and nontaxable gross income of all household members, lines 1 to 14; line 6 other pensions, annuities and IRAs; line 9 federal and Oklahoma EIC) and the definition of total gross household income #page 50-52" href: https://oklahoma.gov/content/dam/ok/en/tax/documents/forms/individuals/current/511-Pkt.pdf#page=50 - - title: 2025 Form 538-H, lines 10 (public assistance) and 11 (gross positive income from rentals, royalties, partnerships, estates and trusts) + - title: "2025 Form 538-H, lines 10 (public assistance) and 11 (gross positive income from rentals, royalties, partnerships, estates and trusts) and the definition of gross household income #page 1,3" href: https://oklahoma.gov/content/dam/ok/en/tax/documents/forms/individuals/current/538-H.pdf#page=1 + - title: "68 O.S. 2904(3) and 5012, gross household income #page 1373,1635" + href: https://www.oklegislature.gov/OK_Statutes/CompleteTitles/os68.pdf#page=1373 - title: Okla. Admin. Code 710:50-15-96(c) (gross household income is the gross income of every type) href: https://www.law.cornell.edu/regulations/oklahoma/OAC-710-50-15-96 diff --git a/policyengine_us/tests/core/test_state_estate_income_invariants.py b/policyengine_us/tests/core/test_state_estate_income_invariants.py index 2cb59ded568..6c74d941fb0 100644 --- a/policyengine_us/tests/core/test_state_estate_income_invariants.py +++ b/policyengine_us/tests/core/test_state_estate_income_invariants.py @@ -33,8 +33,9 @@ concept exactly as the same amount of rental income does, loss or gain. Each state puts both on the same form line or under the same loss rule. -The identities hold for this income mix. The federal EITC is set to zero -because Oklahoma counts it (Form 538-S line 9) and an estate loss changes it. +The identities hold for this income mix. The federal and Oklahoma EITCs are +set to zero because Oklahoma counts both (Form 538-S line 9) and an estate +loss or rental income changes them. """ import numpy as np @@ -127,7 +128,11 @@ def every_year(value): unit["estate"] if variant == "rental" else 0.0 ), } - tax_units[name] = {"members": [name], "eitc": every_year(0)} + tax_units[name] = { + "members": [name], + "eitc": every_year(0), + "ok_eitc": every_year(0), + } households[name] = { "members": [name], "state_code": every_year(state), diff --git a/policyengine_us/tests/policy/baseline/gov/states/ok/tax/income/ok_gross_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/ok/tax/income/ok_gross_income.yaml index 0f9688eafa4..b44a9cfd142 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/ok/tax/income/ok_gross_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/ok/tax/income/ok_gross_income.yaml @@ -1,12 +1,34 @@ +# 68 O.S. 5012 and 2904(3): "gross household income" means the gross amount of +# income of every type, regardless of the source, received by all persons +# occupying the same household, whether such income was taxable or nontaxable +# for federal or state income tax purposes, including pensions, annuities, +# federal social security, unemployment payments, veterans' disability +# compensation, public assistance payments, alimony, support money, workers' +# compensation, loss-of-time insurance payments, capital gains and any other +# type of income received; and excluding gifts. +# Form 538-S line 9 counts the federal and the Oklahoma earned income credit. +# Cases that isolate another source set both credits (eitc and ok_eitc) to 0. + - name: OK gross income unit test 1 period: 2021 + absolute_error_margin: 0.01 input: employment_income: 12_000 social_security: 2_000 eitc: 800 state_code: OK output: - ok_gross_income: 12_000 + 2_000 + 800 + # Form 538-S line 9 combines the federal and Oklahoma EIC. The Oklahoma + # credit is 5% of the federal credit under 2020 rules for a filer with no + # qualifying child: phase-in min(538, 12,000 x 7.65%) = 538, less the + # phase-out 7.65% x (12,000 - 8,790) = 245.565, is 292.435; 5% of that is + # 14.62175. Oklahoma AGI equals federal AGI (12,000; the Social Security + # is untaxed), so no proration. In 2021 the credit is nonrefundable, but + # the 2021 tax on 12,000 - 6,350 - 1,000 = 4,650 of taxable income (72) + # is above it. + # 12,000 + 2,000 + 800 + 14.62175 = 14,814.62175. + ok_eitc: 14.62175 + ok_gross_income: 14_814.62175 - name: OK gross income includes SSTB self-employment income period: 2024 @@ -82,3 +104,348 @@ # Form 538-S Part 3 counts taxable and nontaxable income, line 6 other # pensions and annuities: 10,000 + 15,000 + 2,000. ok_gross_income: 27_000 + +- name: OK gross household income counts everyone living in the household + period: 2025 + input: + people: + parent: + age: 70 + # 1,500 a month, above the SSI income limit, so no SSI is computed. + social_security_retirement: 18_000 + adult_child: + age: 40 + irs_employment_income: 30_000 + tax_units: + parent_unit: + members: [parent] + eitc: 0 + ok_eitc: 0 + child_unit: + members: [adult_child] + eitc: 0 + ok_eitc: 0 + households: + household: + members: [parent, adult_child] + state_code: OK + output: + # Income "received by all persons occupying the same household"; Form + # 538-S line 13, "income of others living in your household". + # 18,000 + 30,000 = 48,000 on either claim (one tax unit alone would + # give [18,000, 30,000]). + ok_gross_income: [48_000, 48_000] + +- name: OK gross household income takes each return's gross positive income, so one member's loss doesn't offset another's income + period: 2025 + input: + people: + parent: + age: 70 + social_security_retirement: 18_000 + rental_income: -5_000 + adult_child: + age: 40 + irs_employment_income: 30_000 + tax_units: + parent_unit: + members: [parent] + child_unit: + members: [adult_child] + households: + household: + members: [parent, adult_child] + state_code: OK + output: + # Forms 538-S and 538-H line 11: gross (positive) income from rentals; + # "YOU MAY NOT ENTER NEGATIVE AMOUNTS". The parent's rental loss counts + # as 0 and doesn't reduce the child's wages. Neither return has an + # earned income credit (the parent is over 64; the child's 30,000 is past + # the childless phase-out). + # 18,000 + max(-5,000, 0) + 30,000 = 48,000. + ok_gross_income: [48_000, 48_000] + +- name: OK sales tax credit at exactly the 50,000 limit once a household member's income counts + period: 2025 + input: + people: + parent: + age: 70 + social_security_retirement: 18_000 + adult_child: + age: 40 + irs_employment_income: 32_000 + tax_units: + parent_unit: + members: [parent] + child_unit: + members: [adult_child] + households: + household: + members: [parent, adult_child] + state_code: OK + output: + # 18,000 + 32,000 = 50,000 for both returns. The parent (70) has the + # 50,000 limit and qualifies at exactly the limit: 1 x 40. The child (no + # dependents, under 65) has the 20,000 limit. + ok_gross_income: [50_000, 50_000] + ok_stc: [40, 0] + +- name: OK sales tax credit just above the 50,000 limit once a household member's income counts + period: 2025 + input: + people: + parent: + age: 70 + social_security_retirement: 18_000 + adult_child: + age: 40 + irs_employment_income: 32_001 + tax_units: + parent_unit: + members: [parent] + child_unit: + members: [adult_child] + households: + household: + members: [parent, adult_child] + state_code: OK + output: + # 18,000 + 32,001 = 50,001, over the parent's 50,000 limit. Counting the + # parent's return alone (18,000) would allow 40. + ok_gross_income: [50_001, 50_001] + ok_stc: [0, 0] + +- name: OK property tax credit ends when a household member's wages count + period: 2025 + input: + people: + parent: + age: 70 + social_security_retirement: 10_000 + # Savings above the 2,000 SSI resource limit, so no SSI or state + # supplement is computed. + bank_account_assets: 10_000 + real_estate_taxes: 500 + adult_child: + age: 40 + irs_employment_income: 30_000 + tax_units: + parent_unit: + members: [parent] + child_unit: + members: [adult_child] + households: + household: + members: [parent, adult_child] + state_code: OK + output: + # 68 O.S. 2904(3) and Form 538-H Part 2: income of all members of the + # household. 10,000 + 30,000 = 40,000, over the 12,000 limit. The + # parent's 10,000 alone would allow min(200, 500 - 1% x 10,000) = 200. + ok_gross_income: [40_000, 40_000] + ok_ptc: [0, 0] + +- name: OK gross income counts nontaxable W-2 income such as dependent care benefits + period: 2025 + input: + age: 40 + employment_income: 20_000 + # Excluded from federal wages (W-2 box 10), so irs_employment_income is + # 17,000. With no qualifying person the 3,000 is taxable on Form 2441, + # but box 1 plus box 10 is 20,000 either way. + dependent_care_employer_benefits: 3_000 + eitc: 0 + ok_eitc: 0 + state_code: OK + output: + # Form 538-S line 1: wages "(including nontaxable income from your + # W-2s)"; its definitions name "a dependent care reimbursement account". + # 17,000 + 3,000 = 20,000. + ok_gross_income: 20_000 + +- name: OK gross income counts IRA distributions + period: 2025 + input: + age: 40 + irs_employment_income: 10_000 + taxable_ira_distributions: 15_000 + eitc: 0 + ok_eitc: 0 + state_code: OK + output: + # Form 538-S line 6: "Other pensions, annuities, and Individual + # Retirement Accounts (IRAs)". Deferred income is "included when + # distributed and taxed on your federal return". + # 10,000 + 15,000 = 25,000. + ok_gross_income: 25_000 + +- name: OK gross income counts TANF as a public assistance payment + period: 2025 + input: + age: 40 + irs_employment_income: 5_000 + tanf: 2_400 + eitc: 0 + ok_eitc: 0 + state_code: OK + output: + # "public assistance payments". + # 5,000 + 2,400 = 7,400. + ok_gross_income: 7_400 + +- name: OK property tax credit ends when TANF counts as public assistance + period: 2025 + input: + people: + grandparent: + age: 66 + social_security_retirement: 12_000 + # Savings above the 2,000 SSI resource limit, so no SSI or state + # supplement is computed. + bank_account_assets: 10_000 + real_estate_taxes: 300 + grandchild: + age: 10 + tax_units: + tax_unit: + members: [grandparent, grandchild] + spm_units: + spm_unit: + members: [grandparent, grandchild] + tanf: 600 + households: + household: + members: [grandparent, grandchild] + state_code: OK + output: + # Form 538-H line 10: public assistance. 12,000 + 600 = 12,600, over the + # 12,000 limit. Without the TANF, income is exactly 12,000 and the + # credit is min(200, 300 - 1% x 12,000) = 180. + ok_gross_income: 12_600 + ok_ptc: 0 + +- name: OK gross income counts veterans' disability compensation + period: 2025 + input: + age: 40 + irs_employment_income: 10_000 + veterans_benefits: 12_000 + eitc: 0 + ok_eitc: 0 + state_code: OK + output: + # "veterans' disability compensation". + # 10,000 + 12,000 = 22,000. + ok_gross_income: 22_000 + +- name: OK gross income counts loss-of-time insurance and disability benefits + period: 2025 + input: + age: 40 + irs_employment_income: 10_000 + disability_benefits: 6_000 + eitc: 0 + ok_eitc: 0 + state_code: OK + output: + # "loss-of-time insurance payments". + # 10,000 + 6,000 = 16,000. + ok_gross_income: 16_000 + +- name: OK gross income counts school grants and scholarships + period: 2025 + input: + age: 40 + irs_employment_income: 10_000 + educational_assistance: 4_000 + eitc: 0 + ok_eitc: 0 + state_code: OK + output: + # Forms 538-S and 538-H: gross household income "includes, but is not + # limited to ... school grants or scholarships". + # 10,000 + 4,000 = 14,000. + ok_gross_income: 14_000 + +- name: OK gross income counts gambling winnings + period: 2025 + input: + age: 40 + irs_employment_income: 10_000 + gambling_winnings: 3_000 + eitc: 0 + ok_eitc: 0 + state_code: OK + output: + # "income of every type, regardless of the source". + # 10,000 + 3,000 = 13,000. + ok_gross_income: 13_000 + +- name: OK gross income counts the earned income credit on the year's own return + period: 2025 + input: + age: 40 + irs_employment_income: 10_000 + # The credit on the 2025 return. + eitc: 3_000 + # The Oklahoma credit is set to zero here; the next case covers it. + ok_eitc: 0 + state_code: OK + output: + # Form 538-S line 9 asks for the "Earned Income Credit (EIC) received in + # 2025", and the 2025 credit is paid in 2026. PolicyEngine follows the + # current-year convention (as TAXSIM does): it counts the credit on the + # year's own return, so the 2025 credit counts as 2025 income. + # 10,000 + 3,000 = 13,000. + ok_gross_income: 13_000 + +- name: OK gross income combines the federal and Oklahoma earned income credits + period: 2025 + input: + people: + parent: + age: 40 + # TANF reads wages before labor supply responses. + employment_income_before_lsr: 10_000 + child: + age: 5 + tax_units: + tax_unit: + members: [parent, child] + spm_units: + spm_unit: + members: [parent, child] + households: + household: + members: [parent, child] + state_code: OK + output: + # Form 538-S line 9: "if applicable, combine federal and Oklahoma + # amounts". Federal 2025 credit with one child: 10,000 x 34% = 3,400 + # (below the 4,328 maximum; income is under the 23,350 phase-out start). + # Oklahoma: 5% of the credit under 2020 rules, 10,000 x 34% = 3,400 + # (below the 3,584 maximum and the 19,330 phase-out start), so 170. + # No TANF: 833.33 a month of wages, less the 120 or 240 work expense + # and the 50% disregard, leaves at least 296.67 of countable income, + # above the 225 payment standard for two. + # 10,000 + 3,400 + 170 = 13,570. + eitc: 3_400 + ok_eitc: 170 + ok_gross_income: 13_570 + +- name: OK gross income counts foreign earned income excluded from federal income + period: 2025 + input: + age: 40 + irs_employment_income: 10_000 + # Wage inputs are the amounts left after the IRC 911 exclusion. + foreign_earned_income_exclusion: 10_000 + eitc: 0 + ok_eitc: 0 + state_code: OK + output: + # Income counts "whether such income was taxable or nontaxable for + # federal or state income tax purposes". + # 10,000 + 10,000 = 20,000. + ok_gross_income: 20_000 diff --git a/policyengine_us/variables/gov/states/ok/tax/income/credits/ok_gross_income.py b/policyengine_us/variables/gov/states/ok/tax/income/credits/ok_gross_income.py index a8ad22ef96e..8c8fce458e8 100644 --- a/policyengine_us/variables/gov/states/ok/tax/income/credits/ok_gross_income.py +++ b/policyengine_us/variables/gov/states/ok/tax/income/credits/ok_gross_income.py @@ -4,26 +4,60 @@ class ok_gross_income(Variable): value_type = float entity = TaxUnit - label = "Oklahoma gross income used in OK credit calculations" + label = "Oklahoma gross household income for the sales tax and property tax credits" unit = USD definition_period = YEAR + documentation = ( + "Gross household income for the Oklahoma sales tax credit (Form 538-S) " + "and property tax credit (Form 538-H): the income of every type, " + "taxable or not, received by all persons occupying the same household. " + "Each tax unit's own gross income is computed from the sources list, " + "and every tax unit in a household gets the sum over all the tax units " + "in that household, so co-residents who file their own returns count." + ) reference = ( "https://oklahoma.gov/content/dam/ok/en/tax/documents/forms/individuals/past-year/2021/511-Pkt-2021.pdf", "https://oklahoma.gov/content/dam/ok/en/tax/documents/forms/individuals/current/511-Pkt.pdf", + # 2025 Form 538-S, Part 3 (lines 1 to 14) and the definition of total + # gross household income. + # PDF pages 1-3 + "https://oklahoma.gov/content/dam/ok/en/tax/documents/forms/individuals/current/538-S.pdf#page=1", + # 2025 Form 538-H, Part 2 (lines 1 to 14) and the definition of gross + # household income. + # PDF pages 1, 3 + "https://oklahoma.gov/content/dam/ok/en/tax/documents/forms/individuals/current/538-H.pdf#page=1", + # 68 O.S. 2904(3) (property tax credit) and 68 O.S. 5012 (sales tax + # credit) define gross household income. + # PDF pages 1373, 1635 + "https://www.oklegislature.gov/OK_Statutes/CompleteTitles/os68.pdf#page=1373", + "https://www.law.cornell.edu/regulations/oklahoma/OAC-710-50-15-96", ) defined_for = StateCode.OK def formula(tax_unit, period, parameters): - # compute comprehensive gross income for all people in tax unit p = parameters(period).gov.states.ok.tax.income + # Each tax unit's own gross income, line by line as its own return + # reports it. Capital gains are netted within the return before the + # positive-only rule, as line 11 takes gains from the federal return. capital_gain_sources = [ "short_term_capital_gains", "long_term_capital_gains", ] - income = max_(0, add(tax_unit, period, capital_gain_sources)) + unit_income = max_(0, add(tax_unit, period, capital_gain_sources)) for source in p.credits.gross_income_sources: if source in capital_gain_sources: continue - # gross income includes only positive amounts (i.e., no losses) - income += max_(0, add(tax_unit, period, [source])) - return income + # Gross income includes only positive amounts (i.e., no losses). + unit_income += max_(0, add(tax_unit, period, [source])) + # 68 O.S. 5012 and 2904(3) count income "received by all persons + # occupying the same household", as do OAC 710:50-15-96(c), Form + # 538-S Part 3 (line 13: "income of others living in your + # household") and Form 538-H Part 2. Spread each tax unit's amount + # evenly over its members, sum the members of each household, and + # give each tax unit its household's total. This maps through + # persons, so tax units that share a household each count every + # unit's income once. + person = tax_unit.members + member_share = tax_unit.project(unit_income / tax_unit.nb_persons()) + household_income = person.household.sum(member_share) + return tax_unit.value_from_first_person(household_income) From 26cf088fabe5c8503df043f2ba74fd0fc808996d Mon Sep 17 00:00:00 2001 From: David Trimmer <178813244+DTrim99@users.noreply.github.com> Date: Fri, 20 Nov 2026 11:06:26 -0500 Subject: [PATCH 2/2] Fix issues from review: count the Oklahoma EIC from 2022 The Oklahoma earned income credit was nonrefundable in 2021 and became refundable in 2022, so it joins the gross income sources list from 2022-01-01. The 2021 test expects 14,800 again (wages + Social Security + federal EIC). The variable no longer mutates the accumulator in place. Co-Authored-By: Claude Opus 5.5 --- .../income/credits/gross_income_sources.yaml | 51 +++++++++++++++++-- .../states/ok/tax/income/ok_gross_income.yaml | 21 +++----- .../ok/tax/income/credits/ok_gross_income.py | 2 +- 3 files changed, 57 insertions(+), 17 deletions(-) diff --git a/policyengine_us/parameters/gov/states/ok/tax/income/credits/gross_income_sources.yaml b/policyengine_us/parameters/gov/states/ok/tax/income/credits/gross_income_sources.yaml index fb80039842c..3db06b04527 100644 --- a/policyengine_us/parameters/gov/states/ok/tax/income/credits/gross_income_sources.yaml +++ b/policyengine_us/parameters/gov/states/ok/tax/income/credits/gross_income_sources.yaml @@ -75,8 +75,53 @@ values: # Form 538-S line 9: "Earned Income Credit (EIC) received in 2025 (if # applicable, combine federal and Oklahoma amounts)" (2025 Form 511 # packet, page 51). PolicyEngine counts the credits on the year's own - # return rather than the credits received during the year. + # return rather than the credits received during the year. The Oklahoma + # credit was nonrefundable in 2021, so it lowered tax rather than being + # income received; it joins the list in 2022. - eitc + 2022-01-01: + # The 2021 list (see the comments there), plus the Oklahoma earned + # income credit. + - irs_employment_income + - dependent_care_employer_benefits + - self_employment_income + - sstb_self_employment_income + - partnership_s_corp_income + - farm_operations_income + - farm_rent_income + - short_term_capital_gains + - long_term_capital_gains + - interest_income + - rental_income + - estate_income + - dividend_income + - pension_income + - military_retirement_income + - retirement_distributions + - debt_relief + - total_unemployment_compensation + - workers_compensation + - social_security + - alimony_income + - child_support_received + - illicit_income + - miscellaneous_income + - ssi + - ok_ssp + - general_assistance + - tanf + - veterans_benefits + - disability_benefits + - educational_assistance + - gambling_winnings + - section_911_excluded_income + - eitc + # The Oklahoma earned income credit was made refundable in 2022 (2022 Form + # 511 packet, "What's new", page 3). Form 538-S line 9 asks to "combine + # federal and Oklahoma amounts" only from 2024 (2024 Form 511 packet, + # page 51); for 2022 and 2023 it counts under 68 O.S. 2904(3) and 5012, + # income "of every type, regardless of the source" (Title 68, pages 1373 + # and 1635). - ok_eitc metadata: @@ -84,8 +129,8 @@ metadata: reference: - title: 2021 Form 511 instructions href: https://oklahoma.gov/content/dam/ok/en/tax/documents/forms/individuals/past-year/2021/511-Pkt-2021.pdf - - title: 2022 Form 511 instructions - href: https://oklahoma.gov/content/dam/ok/en/tax/documents/forms/individuals/past-year/2022/511-Pkt-2022.pdf + - title: 2022 Form 511 packet, What's new (the Oklahoma earned income credit made refundable) + href: https://oklahoma.gov/content/dam/ok/en/tax/documents/forms/individuals/past-year/2022/511-Pkt-2022.pdf#page=3 - title: 2023 Form 511 instructions href: https://oklahoma.gov/content/dam/ok/en/tax/documents/forms/individuals/past-year/2023/511-Pkt.pdf - title: 2024 Form 511 instructions diff --git a/policyengine_us/tests/policy/baseline/gov/states/ok/tax/income/ok_gross_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/ok/tax/income/ok_gross_income.yaml index b44a9cfd142..39b8f6e28e8 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/ok/tax/income/ok_gross_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/ok/tax/income/ok_gross_income.yaml @@ -6,8 +6,9 @@ # compensation, public assistance payments, alimony, support money, workers' # compensation, loss-of-time insurance payments, capital gains and any other # type of income received; and excluding gifts. -# Form 538-S line 9 counts the federal and the Oklahoma earned income credit. -# Cases that isolate another source set both credits (eitc and ok_eitc) to 0. +# Form 538-S line 9 counts the federal earned income credit and, from 2022, +# when it became refundable, the Oklahoma credit. Cases that isolate another +# source set both credits (eitc and ok_eitc) to 0. - name: OK gross income unit test 1 period: 2021 @@ -18,17 +19,11 @@ eitc: 800 state_code: OK output: - # Form 538-S line 9 combines the federal and Oklahoma EIC. The Oklahoma - # credit is 5% of the federal credit under 2020 rules for a filer with no - # qualifying child: phase-in min(538, 12,000 x 7.65%) = 538, less the - # phase-out 7.65% x (12,000 - 8,790) = 245.565, is 292.435; 5% of that is - # 14.62175. Oklahoma AGI equals federal AGI (12,000; the Social Security - # is untaxed), so no proration. In 2021 the credit is nonrefundable, but - # the 2021 tax on 12,000 - 6,350 - 1,000 = 4,650 of taxable income (72) - # is above it. - # 12,000 + 2,000 + 800 + 14.62175 = 14,814.62175. - ok_eitc: 14.62175 - ok_gross_income: 14_814.62175 + # The Oklahoma earned income credit was nonrefundable in 2021 (it became + # refundable in 2022), so it lowers tax rather than counting as income; + # only the federal credit counts. + # 12,000 + 2,000 + 800 = 14,800. + ok_gross_income: 14_800 - name: OK gross income includes SSTB self-employment income period: 2024 diff --git a/policyengine_us/variables/gov/states/ok/tax/income/credits/ok_gross_income.py b/policyengine_us/variables/gov/states/ok/tax/income/credits/ok_gross_income.py index 8c8fce458e8..ec3e0634297 100644 --- a/policyengine_us/variables/gov/states/ok/tax/income/credits/ok_gross_income.py +++ b/policyengine_us/variables/gov/states/ok/tax/income/credits/ok_gross_income.py @@ -48,7 +48,7 @@ def formula(tax_unit, period, parameters): if source in capital_gain_sources: continue # Gross income includes only positive amounts (i.e., no losses). - unit_income += max_(0, add(tax_unit, period, [source])) + unit_income = unit_income + max_(0, add(tax_unit, period, [source])) # 68 O.S. 5012 and 2904(3) count income "received by all persons # occupying the same household", as do OAC 710:50-15-96(c), Form # 538-S Part 3 (line 13: "income of others living in your