Fix IA standard deduction to include elderly/blind additional#7937
Open
PavelMakarchuk wants to merge 2 commits intomainfrom
Open
Fix IA standard deduction to include elderly/blind additional#7937PavelMakarchuk wants to merge 2 commits intomainfrom
PavelMakarchuk wants to merge 2 commits intomainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7937 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 19 2 -17
Lines 297 42 -255
Branches 0 2 +2
==========================================
- Hits 297 42 -255
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:
|
Both ia_standard_deduction_joint and ia_standard_deduction_indiv used the base federal parameter (fed_p.standard.amount[filing_status]) which omits the additional standard deduction for elderly/blind filers. Per IA 1040 line 1d, Iowa uses the full federal standard deduction from federal 1040 line 12e, which includes the additional amount. Fix: use the federal standard_deduction variable (basic + additional + bonus_guaranteed) instead of the base parameter lookup. Closes #7936 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
def67db to
7b50e5d
Compare
Collaborator
|
Checks failing |
ia_standard_deduction_joint is a Person variable that returns the full deduction on head and 0 on spouse (via is_head * deduction). Test expected a scalar; change to [34_700, 0]. Co-Authored-By: Claude Opus 4.6 (1M context) <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
Iowa's standard deduction was missing the elderly/blind additional amount. The code used the base federal parameter (
fed_p.standard.amount[filing_status]= $31,500 MFJ) instead of the full federalstandard_deductionvariable ($34,700 for elderly joint couple).Closes #7936
Root Cause
Both
ia_standard_deduction_joint.pyandia_standard_deduction_indiv.pylooked upfed_p.standard.amount[filing_status]which returns only the basic standard deduction, omitting:Per IA 1040 line 1d: "Standard deduction or itemized deductions from federal 1040, line 12e" — which includes the full federal standard deduction.
Fix
Replaced the parameter lookup with the
standard_deductionvariable (=basic_standard_deduction+additional_standard_deduction+bonus_guaranteed_deduction). For the individual (MFS) path, each spouse gets half.Test plan
References
🤖 Generated with Claude Code