Skip to content

Conversation

@MaxGhenis
Copy link
Contributor

Summary

DC married couples filing "separately on the same return" can now benefit from optimal deduction allocation. Per DC Schedule S, Calculation J, Line F:

"You may allocate this amount as you wish."

The optimal strategy allocates all deductions to the higher-earning spouse, who benefits more from each dollar of deduction due to progressive tax rates. This reduces combined tax liability compared to the previous proportional allocation approach.

Changes

  • Updated dc_deduction_indiv to allocate deductions to the higher earner instead of proportionally by AGI share
  • Updated existing test to reflect optimal allocation behavior
  • Added test cases for spouse as higher earner and equal AGI scenarios
  • Added integration test for DC married separate-combined filing scenario from the issue

Test

  • All existing DC tax tests pass (78 tests)
  • New tests verify optimal allocation to higher earner
  • Integration test with realistic income scenario validates the change

Closes #7292

Generated with Claude Code

DC married couples filing "separately on the same return" can now benefit
from optimal deduction allocation. Per DC Schedule S, Calculation J, Line F:
"You may allocate this amount as you wish."

The optimal strategy allocates all deductions to the higher-earning spouse,
who benefits more from each dollar of deduction due to progressive tax rates.
This reduces combined tax liability compared to the previous proportional
allocation approach.

Changes:
- Updated dc_deduction_indiv to allocate deductions to higher earner
- Updated existing test to reflect optimal allocation behavior
- Added test cases for spouse as higher earner and equal AGI scenarios
- Added integration test for DC married separate-combined filing

Closes #7292

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Jan 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (66ccff2) to head (d6f96c0).
⚠️ Report is 439 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##             main     #7297       +/-   ##
============================================
+ Coverage   72.72%   100.00%   +27.27%     
============================================
  Files        3757         1     -3756     
  Lines       54115        19    -54096     
  Branches      267         0      -267     
============================================
- Hits        39353        19    -39334     
+ Misses      14742         0    -14742     
+ Partials       20         0       -20     
Flag Coverage Δ
unittests 100.00% <100.00%> (+27.27%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 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.

The dc_deduction_indiv optimization (allocating all deductions to the
higher earner) changes the cliff_gap calculation for DC married couples.
Updated expected value from 470.47 to 461.5 for the non-earning spouse.
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.

DC married separate-combined filing: deduction allocation not optimized

2 participants