Repository navigation
Add Montana income tax parameters for 2017–2020 - #10847
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
US + core hub merge audit, us#10847 at
🤖 Generated with Claude Code |
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.
Correct Montana's 2017–2020 income tax parameters so historical returns use the amounts the Department of Revenue published for each year. Also start four existing subtractions in 2017, where the parameter list started them in 2021. Tax years 2015 and 2016 change too, through backdating.
The annual brackets, exemptions and pension limits come from the 2017, 2018, 2019 and 2020 Form 2 instructions. The department published the earlier standard deduction limits in its 2021 instructions.
This follows the historical-parameter finding in #10276.
Changes
Joint and head-of-household standard deduction limits equal twice the single amounts. The pension limits appear on PDF pages 23, 25, 30 and 27, respectively.
Start four existing subtractions in 2017, where the parameter list started them in 2021, so they now apply in 2017–2020. They cover federal-government interest and state income-tax refunds (Schedule II, lines 1 and 6), senior interest (line 12), and 529 contributions (line 20). For 2015 and 2016 the list keeps its three entries.
Date the existing parameters from their verified 2017 availability for separate filing (Box 3a), exemptions and the capital gains credit (lines 44–47), standard deductions (Worksheet V), and Social Security calculations (Worksheet VIII). Also date the existing parameters for the federal tax deduction, child-care deduction and allocation, miscellaneous deductions, interest and disability exclusions, and other additions.
backdate_parameterscopies each parameter's earliest value back to 2015, the first modeled year. Onmain, 2015 and 2016 took the 2021 amounts, and they now take the 2017 brackets, exemption, standard deduction limits and pension limits.The 2017 medical-allocation example now produces $114.00 of separate tax and $184.00 of joint tax. With the same 0.679 allocation, each spouse has $4,300 of taxable income: $29 + $1,400 × 2% = $57.00.
Invariants and validation
test_mt_historical_parameters.pychecks three properties with generated inputs and deterministic boundary points:mt_historical_parameters.yamladds 21 cases covering annual amounts, both sides of each rate threshold, both standard-deduction boundaries, both pension phase-out boundaries, and the restored subtractions.mt_income_tax.yamlchecks the re-derived 2017 medical-allocation example.The historical amounts and the four subtractions change results for 2015–2020 only. A comparison of all 39 edited parameter files found identical effective values in all 390 file/year combinations for 2021–2030.
Local single-file checks passed: 21 historical YAML cases, 6 income-tax YAML cases, 3 property tests and all 103 source-conflict guard tests.
make formatpassed.Five mutants each failed their targeted assertion: an incorrect 2017 bracket, exemption and pension cap, a doubled 2018 surviving-spouse cap, and delaying the restored subtractions until 2021.
Pull request run 43524771581 at
55a31a61bepassed all 36 jobs on GitHub's merge with mainf926615321.Methodology choices
us-mt:surviving-spouse-standard-deductionfor later registration. Single and head-of-household filers share the $5,000 federal-tax deduction limit and $800 senior-interest limit.Overlap with open work
Companion draft PR #10840 addresses the other #10276 follow-ups. The two PRs edit separate files and can merge independently.
#9888 and #9912 each change the first list in
deductions/itemized/misc_deductions.yaml, which this PR re-dates from 2021 to 2017. #10696 changes the list insubtractions/subtractions.yamlthat this PR re-dates the same way. All three will conflict in those files once this PR lands, and each should keep the 2017 date when it merges main.#10772 and #10713 also edit
subtractions/subtractions.yamland merge there without conflict. Each will conflict insource_conflicts/candidates.yaml, where its entry sits next to this PR's. #10002 and #10070 merge with this head without conflict. #10110, a draft, also editsitemized/misc_deductions.yaml.Microsimulation impact
This PR changes Montana income tax results for tax years 2015 to 2020 only. The default dataset's records start in 2024, so no population estimate exists for those years.
We compared
mainat935b24ff4fwith this branch at55a31a61be. All 664 leaf parameters undergov.states.mthold the same value on both at the start of each year from 2021 to 2035, and the PR changes no formula.For 2015 to 2020, lower bracket thresholds, exemptions, standard deduction limits and pension limits can raise tax, and from 2017 the four subtractions can lower it. For example, a single filer aged 40 with $40,000 of wages owes $1,722.81 of Montana income tax for 2016, up from $1,649.51:
main(2021 amounts)The same filer's tax for 2021, 2024, 2025 and 2026 stays the same.
impact: Montana income tax changes for tax years 2015 to 2020 only; the default dataset starts in 2024, so no estimate exists for those years, and no parameter or formula changes from 2021 on
axiom: TheAxiomFoundation/rulespec-us#1520 queued, extended with the 2017–2020 amounts and companion cases; the corpus lacks the 2017–2020 Form 2 instructions and the 2017 and 2019 editions of MCA 15-30-2103, 15-30-2110 and 15-30-2132, so the signed encoder can't run yet
🤖 Generated with Claude Code