Fix WI retirement income exclusion not reflected in state_income_tax#7823
Open
PavelMakarchuk wants to merge 4 commits intomainfrom
Open
Fix WI retirement income exclusion not reflected in state_income_tax#7823PavelMakarchuk wants to merge 4 commits intomainfrom
PavelMakarchuk wants to merge 4 commits intomainfrom
Conversation
Adjust wi_income_tax_before_refundable_credits to account for the retirement income exclusion so the decomposed aggregation (before_refundable - refundable) matches the min(standard, exclusion) logic in wi_income_tax. Closes #7805. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7823 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 64 2 -62
Lines 707 32 -675
Branches 1 1
==========================================
- Hits 707 32 -675
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:
|
…tern Move retirement exclusion min() logic entirely into wi_income_tax_before_refundable_credits and remove it from wi_income_tax, keeping the codebase consistent with the standard state tax pattern. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adapt the three unit tests to stub inputs upstream of wi_income_tax_before_refundable_credits so they exercise the exclusion logic in its new location. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
state_income_taxoverstating Wisconsin tax for retirees eligible for the retirement income exclusion (Schedule SB Line 16)wi_income_taxcorrectly computesmin(standard_tax, exclusion_tax)butstate_income_taxbypassed this via the decomposedbefore_refundable - refundableaggregationCloses #7805.
Change
Modified
wi_income_tax_before_refundable_creditsto account for the retirement exclusion: when the exclusion is in effect, returnsmin(standard, exclusion_tax + refundable)so that afterstate_income_taxsubtracts refundable credits, the result equalsmin(standard - refundable, exclusion_tax)— matchingwi_income_tax.Test plan
wi_income_taxandstate_income_tax= $6,631)make formatclean🤖 Generated with Claude Code