Optimize DC married separate-combined deduction allocation#7297
Open
Optimize DC married separate-combined deduction allocation#7297
Conversation
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 Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
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.
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:
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
dc_deduction_indivto allocate deductions to the higher earner instead of proportionally by AGI shareTest
Closes #7292
Generated with Claude Code