Add dedicated South Carolina dependent exemption parameter#8691
Open
DTrim99 wants to merge 2 commits into
Open
Add dedicated South Carolina dependent exemption parameter#8691DTrim99 wants to merge 2 commits into
DTrim99 wants to merge 2 commits into
Conversation
SC's dependent exemption (Section 12-6-1140(13)) had no parameter of its own — both sc_dependent_exemption and sc_young_child_deduction read the young child deduction's amount param (gov.states.sc.tax.income.deductions.young_child.amount), which is backwards: Section 12-6-1160 defines the young child deduction as "equal to the dependent exemption amount," so the amount belongs to 12-6-1140. Move the amount param to gov.states.sc.tax.income.deductions.dependent_exemption. amount, point sc_dependent_exemption at it, and have sc_young_child_deduction reference it (keeping its own ineligible_age). No change to calculated values — the existing SC baseline tests pass unchanged. This also lets the amount be adjusted independently of the young child deduction's age gate (useful for the Child Poverty Impact Dashboard). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8691 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 18 1 -17
Lines 292 13 -279
==========================================
- Hits 292 13 -279
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Per review, give the South Carolina young child deduction (Section 12-6-1160) its own amount parameter rather than referencing the dependent exemption amount. There are now two independent parameters in their correct folders: - gov.states.sc.tax.income.deductions.dependent_exemption.amount (Section 12-6-1140) - gov.states.sc.tax.income.deductions.young_child.amount (Section 12-6-1160) Values are identical (the statute sets 1160 equal to 1140), so no calculated values change; the existing SC baseline tests pass unchanged. Keeping them separate lets the two be modelled independently. Co-Authored-By: Claude Opus 4.8 (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.
What this does
South Carolina's dependent exemption (§12-6-1140(13)) had no parameter of its own — both
sc_dependent_exemptionandsc_young_child_deductionread the young-child deduction's amount. This adds proper, separate parameters for the two distinct statutory provisions, each in its own folder:gov.states.sc.tax.income.deductions.dependent_exemption.amount— §12-6-1140(13), a deduction for every dependent (read bysc_dependent_exemption).gov.states.sc.tax.income.deductions.young_child.amount— §12-6-1160, the additional deduction for dependents under 6 (read bysc_young_child_deduction).§12-6-1160 sets its amount equal to the §12-6-1140 amount, so both parameters carry identical values — but keeping them separate lets each be modelled/adjusted independently (e.g. in the Child Poverty Impact Dashboard).
No behavior change
Pure restructure — values are identical. A dependent under 6 still correctly receives both deductions (~$8,220 combined), which is real SC policy. The existing SC baseline tests pass unchanged:
sc_young_child_deduction.yaml(4) +sc_dependent_exemption.yaml(2) — 6 passed.🤖 Generated with Claude Code