Skip to content

Report Delaware staxbc on the elected combined-separate path - #1151

Open
DTrim99 wants to merge 1 commit into
mainfrom
fix/de-staxbc-elected-path
Open

Report Delaware staxbc on the elected combined-separate path#1151
DTrim99 wants to merge 1 commit into
mainfrom
fix/de-staxbc-elected-path

Conversation

@DTrim99

@DTrim99 DTrim99 commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Addresses taxsim #1146.

What

Delaware lets a married couple file combined separate (Filing Status 4), taxing each spouse's income in its own column. PolicyEngine elects that path when it is cheaper after credits, and its final Delaware liability (siitax) already matches TaxAct.

The variable staxbc maps to for DE — de_income_tax_before_non_refundable_credits_unit — always reflects the joint single-column computation (it must, to cap non-refundable credits and drive the combined-separate election without a circular dependency). So the reported tax before credits showed the joint figure even when the combined-separate election was used, making it look like PE had chosen joint filing when it hadn't.

This reports the sum of the two per-column liabilities for DE rows that elect combined separate, in both:

  • the batch PolicyEngineRunner (the production CLI path), and
  • the single-record export_household path (public API).

Other states and DE joint filers are unchanged. siitax is untouched.

Example (taxsim #1146)

DE joint, ages 37/35, 1 dependent, $157,143 + $10,057 wages, $2,930 interest, $29,883 child care. PE elects combined separate.

before after
staxbc (tax before credits) 9,783 (joint single column) 9,431 (194 + 9,237, the two columns)
siitax 8,907 (already correct) 8,907

TaxAct's PIT-RES shows the two columns' tax as $194 + $9,237 = $9,431.

Tests

tests/test_de_staxbc_elected_path.py: the #1146 record's staxbc reflects the elected combined-separate path (~9,431, not the joint 9,783), and a DE single filer is unaffected. Existing state-output-adapter, MD parity, and net-of-rebates tests still pass.

🤖 Generated with Claude Code

Delaware lets a married couple file combined separate (Filing Status 4),
taxing each spouse's income in its own column; PolicyEngine elects that
path when it is cheaper. The variable `staxbc` maps to for DE,
de_income_tax_before_non_refundable_credits_unit, always reflects the
joint single-column computation (it must, to cap non-refundable credits
and drive the election without a circular dependency). The reported tax
before credits therefore showed the joint figure even when the combined-
separate election was used.

Report the sum of the two per-column liabilities for DE rows that elect
combined separate, in both the batch PolicyEngineRunner (the CLI path)
and the single-record export_household path. Other states and DE joint
filers are unchanged. The liability after credits (siitax) was already
correct. See taxsim #1146.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
policyengine-taxsim Building Building Preview Aug 24, 2026 3:27pm

Request Review

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.

1 participant