Report Delaware staxbc on the elected combined-separate path - #1151
Open
DTrim99 wants to merge 1 commit into
Open
Report Delaware staxbc on the elected combined-separate path#1151DTrim99 wants to merge 1 commit into
DTrim99 wants to merge 1 commit into
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
staxbcmaps 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:
PolicyEngineRunner(the production CLI path), andexport_householdpath (public API).Other states and DE joint filers are unchanged.
siitaxis 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.
staxbc(tax before credits)siitaxTaxAct'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'sstaxbcreflects 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