Repository navigation
Count the earned income credits received, not this year's credits, in Oklahoma gross household income - #11694
Conversation
…income Forms 538-S and 538-H line 9 count the earned income credit "received in" the year, and 68 O.S. 5012 and 2904(3) count income "received". The credits on the year's own return are paid the next year. Replace eitc and ok_eitc in the source list with two receipt inputs that default to zero, ok_gross_income_federal_eitc_received and ok_gross_income_state_eitc_received, as Montana's elderly homeowner/renter credit does. The Oklahoma input counts from 2023, the first year a refundable Oklahoma credit was received. Move the audit's receipt case from #10812, drop the line 9 pins from the other cases, and add boundary cases at the sales tax and property tax credit limits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11694 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 2 +1
Lines 24 20 -4
=========================================
- Hits 24 20 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@PavelMakarchuk, could you review this one? There's one convention question I'd like your read on. This PR counts the earned income credit received during the year on line 9 of Oklahoma's sales tax relief and property tax credit forms, not the credit on the year's own return. I went this way because Oklahoma says "received" explicitly at every level:
That departs from our usual convention. We normally count a credit in the year it is computed, as TAXSIM does, and #11171 kept Oklahoma on that convention. Montana's elderly homeowner/renter credit has the same "received" wording, and #10331 and #10653 moved it to receipts. This PR does the same for Oklahoma, with two receipt inputs that default to 0: one for the federal EITC and one for the Oklahoma EITC (from 2023, the first year Oklahoma's refundable credits were received). Effect: with the inputs at 0, Oklahoma gross household income falls by the year's own credits for every EITC household, so the sales tax relief and property tax credits can only rise or stay the same. Oklahoma comparisons with TAXSIM will differ on line 9 unless the receipt inputs are set. Question: given our usual current-year convention, do you agree that Oklahoma's explicit "received" wording should govern here? If you'd rather keep the current-year convention, I'll close this and leave #11171's behavior in place. |
PavelMakarchuk
left a comment
There was a problem hiding this comment.
Review at 190b852
This PR changes line 9 of Oklahoma gross household income (Forms 538-S and 538-H) from the earned income credits on the year's own return (eitc, ok_eitc) to the credits received during the year. Two new tax-unit inputs hold these amounts: ok_gross_income_federal_eitc_received and ok_gross_income_state_eitc_received. Both default to 0. The Oklahoma input enters the sources list in 2023, because the first refundable Oklahoma credits (tax year 2022) were paid in 2023. The PR also removes the eitc and ok_eitc pins that earlier tests used to isolate other lines.
Verdict: APPROVE
On the convention question: I agree that the "received" wording governs here. The statute, the regulation and both forms say "received", and the Montana elderly homeowner/renter credit already uses the same receipt approach. The current-year credit was a modelling convention, not a reading of any Oklahoma source.
CRITICAL
None.
SHOULD ADDRESS
None.
SUGGESTION
- The default of 0 understates line 9 for steady filers.
ok_gross_income_federal_eitc_received.pyandok_gross_income_state_eitc_received.pyhave no formula. A filer who gets a similar credit every year now shows $0 on line 9, so the model can overstate both credits for that filer. Example: the 2025 couple in the new sales tax test, with $19,500 of wages, gets $80. If they received a similar credit in 2025 from their 2024 return, the form gives $0. The PR states this gap clearly, and Montana has the same gap. A later option is a formula that uses the prior-year credit (eitcatperiod.last_year) as the default, with the input as an override. That costs a prior-year federal and Oklahoma tax computation in microsimulation, so it is a follow-up, not a fix for this PR. - The variable references still point at the
current/forms.ok_gross_income.pylines 20, 24 and 28 useforms/individuals/current/..., and the comments call them the 2025 forms. These URLs now serve the 2026 forms. The PR moved the same links ingross_income_sources.yamlto thepast-year/2025copies. Do the same inok_gross_income.py, in this PR or in a follow-up.
What I checked
- Sources:
- 68 O.S. 2904(3) (Title 68 PDF page 1373) and 68 O.S. 5012 (page 1635): "income of every type, regardless of the source, received by all persons occupying the same household". 68 O.S. 5011(C) tests "the gross household income for such year". The citations and page numbers are correct.
- 2025 Form 511 packet, Form 538-S Part 3: income "received by ALL members of your household in the year 2025", line 9 "Earned Income Credit (EIC) received in 2025 (if applicable, combine federal and Oklahoma amounts)", and "Income that is exempt must be included in the year received" (pages 50 to 52).
- 2025 Form 538-H line 9: "Earned Income Credit (EIC) received in 2025" (page 1).
- 2022 Form 511 packet, "What's new" (page 3): the Oklahoma EIC "was made refundable". This supports the 2023 start date for the Oklahoma input.
- Code: the two inputs are
float,TaxUnit,YEAR,defined_for = StateCode.OK, with no formula.ok_gross_incomealready sums every tax unit in the household, so a receipt on one return counts once for all units. The only readers ofok_gross_incomeareok_stcandok_ptc. Nothing else reads the new inputs. The change has no vectorization risk. - Partner tests: the PR does not edit any file under
tests/policy/baseline/partners/. - Related work: #11171 (merged) set the current-year convention. #10722 (open, railroad benefits) also edits
gross_income_sources.yamlandok_gross_income.yaml. The second PR to merge must keep the other PR's entries in the 2023 list. - Tests at 190b852 (policyengine-core 3.38.0):
ok_gross_income.yaml: 32 passed.- The full Oklahoma baseline folder (
gov/states/ok): 611 passed. - pytest
core/test_state_estate_income_invariants.py,code_health/test_parameter_yaml_keys.py,test_no_concatenated_reference_urls.pyandtest_known_dead_reference_urls.py: 124 passed.
Part of #10812 (state credit income audit).
What was wrong
ok_gross_incomefeeds Oklahoma's sales tax relief credit (ok_stc, Form 538-S) and property tax credit (ok_ptc, Form 538-H). Line 9 of both forms counts the "Earned Income Credit (EIC) received in 2025", and from 2024 Form 538-S adds "(if applicable, combine federal and Oklahoma amounts)" (2025 Form 511 packet, Form 538-S, PDF page 51; 2025 Form 538-H, page 1). The model counted this year'seitcandok_eitcinstead: the credits on the year's own return, which are paid after the year ends.The law and the forms agree that line 9 is a receipt:
A 2025 credit is received in 2026, so it is 2026 income. #11171 kept the current-year convention (the one TAXSIM uses) and pinned the audit's receipt case at 13,000 under an earlier ruling. This PR switches to receipts, following Montana's elderly homeowner/renter credit (#10331 for federal credits received, with #10653 for Montana credits received), which made the same change for the same "received" wording.
The timing error also leaked into five cases that #11171 otherwise fixed (TANF, veterans' disability compensation, scholarships, gambling winnings and foreign earned income): the Oklahoma credit on the year's own return added $10.80 to $22.27 to each, so #11171 pinned
eitcandok_eitcto 0 in them.What changes
Two new inputs (tax unit, default 0), beside
ok_gross_income.py:ok_gross_income_federal_eitc_received: federal earned income credit received during the calendar year, such as the refund of the prior year's credit.ok_gross_income_state_eitc_received: Oklahoma earned income credit received during the calendar year.Fix Montana disability exclusion repeal, elderly credit receipt timing and occupancy tests #10331's federal input (
mt_elderly_homeowner_or_renter_credit_other_federal_refundable_credits) is scoped to Montana (defined_for = StateCode.MT) and covers every federal refundable credit, so it isn't reusable here. Oklahoma's line 9 names only the earned income credit, so both inputs hold only that credit. They are tax-unit inputs, like theeitcandok_eitcthey replace; the formula already sums every tax unit in the household.gross_income_sources.yaml: the receipt inputs replaceeitc(2021 list) andok_eitc. The Oklahoma input joins in 2023, not 2022. The Oklahoma credit was nonrefundable through tax year 2021 and refundable from 2022 (2022 Form 511 packet, What's new, page 3), so the first refundable credits were received in 2023. The comments cite the 538-S and 538-H lines and 68 O.S. The two 2025-form references now point at thepast-year/2025copies: thecurrent/URLs now serve the 2026 forms, andcurrent/511-Pkt.pdfhas 38 pages, so#page=50no longer resolved.ok_gross_income.py,ok_stc.pyandok_ptc.pydon't change.There is no source conflict: the statute, the regulation (OAC 710:50-15-96(c), "income ... received") and both forms all say "received". The earlier current-year reading was a modelling convention, not another source. This PR adds nothing to
source_conflicts/candidates.yaml.Who is affected
With the inputs at their default of 0, line 9 is 0 for every household, because the microdata carry no prior-year credits. Gross household income falls by the year's own federal and Oklahoma earned income credits in every Oklahoma household where a tax unit has one, and nothing rises. Both credits are refundable, so they can only rise or stay the same, and Oklahoma income tax net of refundable credits falls by the same amount:
No microsimulation was run for this PR.
Tests
ok_gross_income.yaml(32 cases):ok_gross_income_audit.yaml), with the "audit" and "main:" framing dropped and the arithmetic and citations kept:eitcorok_eitcpins. The pins are also gone from the other cases that set them only to isolate line 9 (household members, dependent care, IRA distributions, disability benefits, estate income and estate loss): 21 pin lines in all.eitc: 800becomesok_gross_income_federal_eitc_received: 800. Expected 14,800 is unchanged.eitcandok_eitcasserted so the removed amounts are visible.tests/core/test_state_estate_income_invariants.py: drops theeitcandok_eitczeros that Count everyone in the household, and the missing sources, in Oklahoma gross household income #11171 added to isolate Oklahoma's line 11, and updates its docstring. The invariants now hold without them.Main (
50af7fba69) vs this branch, the same test file:On main the file gives 19 failed and 13 passed; on this branch, 32 passed. The audit file from #10812 itself, run unchanged against this branch: 10 of 10 pass (on main, 4 of 10).
Run locally, one process at a time (policyengine-core 3.37.2, the version in main's
uv.lock):ok_gross_income.yaml: 32 passed.dhs,oesc),tax_unit_itemizes.yaml,state_income_tax_excludes_use_tax.yaml,household_state_income_tax.yaml, the Oklahoma contrib reform tests, and the one partner file with an Oklahoma household (partners/analytics_coverage/.../lifeline/federal.yaml, which reads none of the changed variables): 416 passed.code_health/test_source_conflicts.py,test_parameter_yaml_keys.py,test_reference_urls.py,test_no_concatenated_reference_urls.py,test_known_dead_reference_urls.pyandtest_no_group_variables_in_person_adds.py: 415 passed.core/test_state_estate_income_invariants.pyandcore/test_claimable_filer_nj_pa_invariants.py: 6 passed.ok_gross_income,ok_stc,ok_ptcor the new inputs.ruff formatandruff check: clean.Overlapping open PRs
#10722 (railroad benefits) adds three entries after
social_securityin both lists ofgross_income_sources.yamland cases took_gross_income.yaml. This PR changes other lines in that file (theeitcandok_eitcentries, their comments and the second list's date, 2022 to 2023), so whichever merges second should rebase and keep #10722's entries in the 2023 list. #10722 is already behind #11171 in both files.Not in this PR
axiom: TheAxiomFoundation/rulespec-us#2934 queued
🤖 Generated with Claude Code