Skip to content

Apply income percentages and 2023 and 2024 maximums to Oregon's 529 contribution credit - #11690

Draft
hua7450 wants to merge 1 commit into
mainfrom
or-529-credit-gaps
Draft

hua7450 wants to merge 1 commit into
mainfrom
or-529-credit-gaps

Conversation

@hua7450

@hua7450 hua7450 commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #11689

What and why

or_529_credit returned the smaller of a filer's 529 plan contributions and a maximum by filing status. This PR adds three parts of ORS 315.650 that the model left out. All three date from tax year 2020, when the credit began (Oregon Laws 2019, chapter 579, sections 2 and 5). The PR is separate from Oregon's 2026 update in draft PR #11669.

Change Before After Source
Income percentage None: the full contribution counted, up to the maximum 100% of the contribution at federal adjusted gross income up to $30,000, 50% up to $70,000, 25% up to $100,000, 10% up to $250,000 and 5% above ORS 315.650(2); 2025 Publication OR-17, Table 14
Separate filers The filer's own return only The percentage for the couple's combined income; the maximum stays at half the joint amount ORS 315.650(8); 2025 Publication OR-17, same page
Maximum credit, 2023 $300 joint, $150 others (the 2020 amounts) $340 joint, $170 others 2024 Publication OR-17
Maximum credit, 2024 $300 joint, $150 others $360 joint, $180 others 2024 Publication OR-17, same page

Income percentage

  • Statute: ORS 315.650(2) limits the credit to "the lesser of $300, if reported on a joint return, or $150, if reported on any other type of return, or" a share of the amount contributed that falls as adjusted gross income rises.
  • Income measure: federal adjusted gross income. ORS 315.004(2)(a) gives the terms in chapter 315 their federal income tax meaning, and Publication OR-17 describes AGI as the figure on the federal return.
  • Indexing: ORS 315.650(3) adjusts only the maximum credit amounts. Publication OR-17 prints the same five bands in each edition from 2020 to 2026, so the new parameter has one set of values dated 2020-01-01.
  • Boundaries: the statute sets each band by the income it "does not exceed", so the thresholds are the band tops, the first threshold is -.inf and the formula calls the scale with right=True. A filer with exactly $30,000 gets 100%. Publication OR-17's table starts the 50% band at $30,001 and agrees for whole-dollar returns.
  • Example: Publication OR-17 describes a single filer with AGI of $72,000 who contributes $1,000. Her percentage is 25, and her 2026 credit is the lesser of $250 or $190. The model returned $190 before and after this PR. With a $300 contribution the credit is 25% x $300 = $75; the model returned $190 before this PR.

Separate filers

ORS 315.650(8): "Spouses in a marriage who file separate returns for a taxable year may each claim a share of the tax credit that would have been allowed on a joint return in proportion to the adjusted gross income of each." Publication OR-17 tells separate filers to use the percentage for their combined AGI.

The formula now adds spouse_separate_adjusted_gross_income to the filer's own AGI before the percentage lookup, as ny_household_credit_potential and mn_renters_credit_household_agi do. That variable equals the filer's own AGI unless a caller supplies it.

The maximum for a separate filer stays at the amount for returns other than joint returns, which is half the joint maximum. That equals the statutory share when the spouses have the same income and the same contributions.

Limitation: the model has no record of the other spouse's contributions, so it cannot compute the credit a joint return would have allowed, and the formula does not apply an income share other than one half. A code comment records this. When a caller supplies a different income for the other spouse, the result can sit above or below the statutory share. A separate filer in 2026 with AGI of $40,000, a spouse with $120,000 and a $3,000 contribution gets 10% x $3,000 = $300, limited to $190. The filer's income share is 25%, so the statute allows at most 25% x $380 = $95.

Maximum credit

The 2024 Publication OR-17 prints $300 / $150 for 2021 and 2022, the same as 2020, so those years need no entry. This PR enters $170 and $180 for a qualifying surviving spouse in 2023 and 2024, the amounts for returns other than joint returns, following the reading in #11669.

The variable's reference cited ORS 315.643, which is a different credit. It now points to ORS 315.650.

Overlap with #11669

Both PRs edit max_credit.yaml and or_529_credit.yaml. A trial three-way merge with the head of #11669 gives one conflict in each file. Whichever PR merges second resolves them as follows.

max_credit.yaml, SURVIVING_SPOUSE block (the reference list and the other four blocks merge cleanly):

# ORS 315.650(2) gives the larger amount only to a joint return. A qualifying
# surviving spouse does not file a joint return, so the amount for any other
# type of return applies.
SURVIVING_SPOUSE:
  2020-01-01: 150
  2023-01-01: 170
  2024-01-01: 180
  2025-01-01: 180
  2026-01-01: 190

or_529_credit.yaml: both PRs append cases after the "Zero contributions" case. Keep both blocks. The case from #11669 (a 2026 qualifying surviving spouse with no income and a $500 contribution, credit $190) holds under the new formula, because a filer with no income is in the 100% band.

Until #11669 merges, two things in this branch stay as they are on main:

Not in this PR

  • ABLE account contributions. ORS 315.650(1) allows the subsection (2) amounts for each type of account. or_529_credit reads only investment_in_529_plan, although the model has able_contributions, the tax unit's sum of the able_contributions_person input.
  • The sunset. ORS 315.650 applies to tax years beginning before January 1, 2030. The parameters have no end date, so the model keeps the credit after tax year 2029.
  • A separate filer's share when the spouses' incomes differ. See the limitation above.
  • Maximums after 2026. The parameter has no uprating, so later years keep the 2026 amounts.

Test plan

  • 9 new YAML cases, with expected values derived from the statute and Publication OR-17:
Case Inputs Arithmetic Credit
2026 single, top of the 100% band AGI $30,000, $150 contributed min(190, 100% x 150) 150
2026 single, 50% band AGI $45,000, $300 min(190, 50% x 300) 150
2026 joint, 25% band AGI $85,000, $1,200 min(380, 25% x 1,200) 300
2026 joint, 10% band AGI $150,000, $2,400 min(380, 10% x 2,400) 240
2026 joint, 5% band AGI $300,000, $6,000 min(380, 5% x 6,000) 300
2026 Publication OR-17 example, single AGI $72,000, $1,000 min(190, 25% x 1,000) 190
2026 separate filer AGI $40,000, combined $80,000, $300 min(190, 25% x 300) 75
2023 joint AGI $60,000, $1,200 min(340, 50% x 1,200) 340
2024 single AGI $40,000, $600 min(180, 50% x 600) 180
  • The five existing cases keep their expected values. They have no income, so they fall in the 100% band.
  • Source-conflict register: not applicable. The statute and Publication OR-17 agree on each reading here.
  • ruff format and ruff check pass on the changed Python file.
  • Changelog fragment in changelog.d/
  • CI passes. Tests were not run locally.

The axiom: parity line is not filled in yet. It needs to be added before this PR is marked ready for review.

🤖 Generated with Claude Code

…ibution credit

ORS 315.650(2) limits the credit to the lesser of the maximum or a share of
the contribution set by adjusted gross income: 100% up to $30,000, 50% up to
$70,000, 25% up to $100,000, 10% up to $250,000 and 5% above. The formula
applied no percentage.

- Add the percentage scale, dated from tax year 2020, and apply it to federal
  adjusted gross income.
- For a separate filer, look up the percentage at the couple's combined income
  (ORS 315.650(8), Publication OR-17), using
  spouse_separate_adjusted_gross_income. The maximum stays at half the joint
  amount.
- Add the 2023 ($340 joint, $170 others) and 2024 ($360, $180) maximums.
- Point the variable's reference at ORS 315.650.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@codecov

codecov Bot commented Dec 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (8999568) to head (85b9454).
⚠️ Report is 430 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main    #11690   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           24        16    -8     
=========================================
- Hits            24        16    -8     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Oregon 529 contribution credit skips the income percentages and the 2023 and 2024 maximums

1 participant