Add stillbirth tax provisions for CT, NE, and ND#8115
Add stillbirth tax provisions for CT, NE, and ND#8115DTrim99 wants to merge 5 commits intoPolicyEngine:mainfrom
Conversation
…kota - CT: $2,500 nonrefundable credit per Conn. Gen. Stat. § 12-704i (PA 22-118) - NE: $2,000 refundable credit per Neb. LB 432 (2021) - ND: Inflation-adjusted subtraction from federal taxable income ($4,530 in 2022, $4,892 in 2023) per N.D.C.C. § 57-38-30.3(2) All three use the existing tax_unit_stillborn_children input variable. Effective tax years 2022+ for each state. Closes PolicyEngine#4966, PolicyEngine#5010, PolicyEngine#5016 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8115 +/- ##
===========================================
+ Coverage 94.00% 100.00% +6.00%
===========================================
Files 7 3 -4
Lines 100 39 -61
Branches 2 0 -2
===========================================
- Hits 94 39 -55
+ Misses 6 0 -6
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:
|
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
PR ReviewThanks for implementing stillbirth provisions for three more states in one tight PR. Formula structure, list-parameter integration, reference tuples, and the AZ-pattern parity are clean. A couple of issues to address. Critical (Must Fix)1. ND 2024 and 2025 inflation-adjusted values are missing
The 2024 and 2025 booklets are already cited in 2024-01-01: 5_088
2025-01-01: 5_2412. CI status — all three
No test assertion failures appear in the logs; each job got a Should Address3. Cite the codified NE statute, not just the bill
- title: Neb. Rev. Stat. § 77-2715.07(9)
href: https://nebraskalegislature.gov/laws/statutes.php?statute=77-2715.07Statute explicitly calls this a refundable credit, "For taxable years beginning or deemed to begin on or after January 1, 2022" — confirms the $2,000 value, the refundable classification, and the 2022 effective date. 4. CT Public Act references need section numbers PA 22-118 is ~600 pages and PA 23-31 is sizable. The current references link to the full PDFs with no section or page anchor, so a reviewer has to scan the whole act. Please add the relevant section number (or 5. PR description's "in Nebraska" claim is incorrect (description only, not code) The PR body says NE "specifically requires … that the stillbirth occurred IN NEBRASKA." Neb. Rev. Stat. § 77-2715.07(9) has no geographic requirement — that language is NE DOR booklet gloss on Neb. Rev. Stat. § 71-606(1) registration. The implementation is correct; just drop the "in Nebraska" requirement from the PR description to avoid future confusion. 6. ND label and description should say "subtraction," not "deduction" Filename, class, folder, and the NDCC statute all use "subtraction." The variable
7. Cross-state-code isolation regression test Cheap insurance. Add one YAML case per state like: - name: Non-CT filer receives no CT stillborn credit
period: 2023
input:
state_code: CA
tax_unit_stillborn_children: 1
output:
ct_stillborn_credit: 0
Suggestions8. Document the eligibility simplification All three formulas reduce to 9. Prefer HTML over PDF named-anchors for ND statute
10. Integration / realistic-household YAML test Nothing in the test suite asserts that Validation Summary
Next Steps
Everything else — formula structure, AZ-pattern parity, list-parameter wiring, effective dates, parameter values for CT/NE and ND 2022/2023 — looks correct. |
…vements - Add ND 2024 ($5,088) and 2025 ($5,241) stillborn subtraction values, verified against 2024 and 2025 Schedule ND-1SA Line 8 instructions. - Add gov.irs.uprating on ND stillborn parameter so future years project automatically, matching the inflation-adjustment pattern used by other ND parameters (e.g., marriage-penalty credit). - Rename ND variable label and parameter description from "deduction" to "subtraction" to match the statute, filename, folder, and class name. - Add Neb. Rev. Stat. § 77-2715.07(9) as the primary NE reference (codified statute) ahead of LB 432. - Pin CT PA references to specific sections: PA 22-118 § 412 (enacted section 12-704i) and PA 23-31 § 10 (amended section 12-704i), verified against CT statute history in chap_229.htm. - Add cross-state isolation test case to each of the three YAML test files (non-matching state_code → 0 benefit). - Add ND 2024 and 2025 test cases. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The $2,500 stillborn credit flows through Schedule CT-IT Credit Line 4; linking the form from the parameter makes the form-to-statute chain traceable (matching the pattern already used by the NE and ND params in this PR). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
PavelMakarchuk
left a comment
There was a problem hiding this comment.
Verified all three state provisions against primary statutes and tax forms:
Connecticut — Conn. Gen. Stat. § 12-704i: $2,500 for birth of stillborn child, non-refundable, effective 2022. Claimed on Schedule CT-IT Credit Line 4. ✓
Nebraska — Neb. Rev. Stat. § 77-2715.07(9): $2,000 refundable, effective 2022, conditions = fetal death certificate + ≥20th week gestation + dependent eligibility. Form 1040N Line 38 (2022), 39 (2023), 45 (2024). ✓
North Dakota — N.D.C.C. § 57-38-30.3(2): inflation-adjusted subtraction. 2021 $4,310 / 2022 $4,530 / 2023 $4,892 / 2024 $5,088 / 2025 $5,241. Schedule ND-1SA Line 5a (2022), Line 8 (2023+). ✓
Implementation cleanly reuses tax_unit_stillborn_children and follows the AZ stillborn exemption precedent. Integration via existing non_refundable/refundable/sources list parameters.
Pushed a small addition: Schedule CT-IT Credit Line 4 reference on the CT parameter file, matching the form-linkage pattern used on the NE and ND params in this PR.
Nice work.
Summary
Implements three state stillbirth tax provisions enacted for the 2022 tax year, all reusing the existing
tax_unit_stillborn_childreninput variable:gov.irs.upratingfor future years.Closes #4966, closes #5010, closes #5016.
Regulatory authority
Statutory eligibility per state
Connecticut — From Conn. Gen. Stat. § 12-704i: a taxpayer is allowed a credit of $2,500 "for the delivery of a fetus born dead for which a fetal death certificate has been filed, provided such child would have been a dependent on such taxpayer's federal income tax return. The credit shall be allowed for the taxable year for which a fetal death occurred." Enacted by PA 22-118, § 412 (effective July 1, 2022, applicable to taxable years commencing on or after January 1, 2022); amended by PA 23-31, § 10 (effective June 7, 2023). Integrated into
ct_non_refundable_creditsvia thegov.states.ct.tax.income.credits.non_refundablelist parameter.Nebraska — Neb. Rev. Stat. § 77-2715.07(9) allows a $2,000 refundable credit per stillborn child for taxable years beginning on or after January 1, 2022, when: (a) the parent would have been eligible to claim the stillborn child as a dependent, (b) the stillbirth occurred at or after the twentieth week of gestation, and (c) a fetal death certificate under Neb. Rev. Stat. § 71-606(1) was filed. Only one credit is allowed per stillborn child. Integrated into
ne_refundable_creditsvia thegov.states.ne.tax.income.credits.refundablelist parameter.North Dakota — From N.D.C.C. § 57-38-30.3(2) and the 2022–2025 Schedule ND-1SA Line 8 instructions: a subtraction from federal taxable income is allowed to the parent of a child stillborn during the tax year who (a) obtained a certified Fetal Death Record from the ND Division of Vital Records and (b) would have been eligible to claim the child as a dependent on their federal return. The amount is adjusted annually for inflation. Integrated into
nd_subtractionsvia thegov.states.nd.tax.income.taxable_income.subtractions.sourceslist parameter; future years uprate viagov.irs.uprating.Implementation approach
All three states follow the same pattern as the existing Arizona stillborn exemption (
policyengine_us/variables/gov/states/az/tax/income/exemptions/az_stillborn_exemption.py):0pre-effective-date and the statutory value from 2022-01-01 onward.tax_unit_stillborn_children × per_stillbirth_amount.Files added
Parameters
policyengine_us/parameters/gov/states/ct/tax/income/credits/stillborn.yamlpolicyengine_us/parameters/gov/states/ne/tax/income/credits/stillborn.yamlpolicyengine_us/parameters/gov/states/nd/tax/income/taxable_income/subtractions/stillborn.yamlVariables
policyengine_us/variables/gov/states/ct/tax/income/credits/ct_stillborn_credit.pypolicyengine_us/variables/gov/states/ne/tax/income/credits/ne_stillborn_credit.pypolicyengine_us/variables/gov/states/nd/tax/income/subtractions/nd_stillborn_subtraction.pyTests (6 cases for CT/NE, 8 cases for ND; 20 total including cross-state isolation and ND 2024/2025)
policyengine_us/tests/policy/baseline/gov/states/ct/tax/income/credits/ct_stillborn_credit.yamlpolicyengine_us/tests/policy/baseline/gov/states/ne/tax/income/credits/ne_stillborn_credit.yamlpolicyengine_us/tests/policy/baseline/gov/states/nd/tax/income/subtractions/nd_stillborn_subtraction.yamlIntegration (modified list parameters)
policyengine_us/parameters/gov/states/ct/tax/income/credits/non_refundable.yamlpolicyengine_us/parameters/gov/states/ne/tax/income/credits/refundable.yamlpolicyengine_us/parameters/gov/states/nd/tax/income/taxable_income/subtractions/sources.yamlTest plan
make formatclean🤖 Generated with Claude Code