Skip to content

Add to PR template#424

Merged
nikhilwoodruff merged 3 commits into
masterfrom
template
Jan 3, 2022
Merged

Add to PR template#424
nikhilwoodruff merged 3 commits into
masterfrom
template

Conversation

@nikhilwoodruff
Copy link
Copy Markdown
Collaborator

Fixes #422
Fixes #423

@nikhilwoodruff nikhilwoodruff self-assigned this Dec 31, 2021
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 31, 2021

Codecov Report

Merging #424 (2f2ac63) into master (0951500) will increase coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #424      +/-   ##
==========================================
+ Coverage   95.20%   95.25%   +0.04%     
==========================================
  Files          62       61       -1     
  Lines        3859     3896      +37     
  Branches      493      495       +2     
==========================================
+ Hits         3674     3711      +37     
  Misses        160      160              
  Partials       25       25              
Impacted Files Coverage Δ
openfisca_us/variables/hhs/fpg.py 100.00% <0.00%> (ø)
openfisca_us/variables/hhs/medicaid/medicaid.py 100.00% <0.00%> (ø)
...enfisca_us/variables/usda/snap/is_snap_eligible.py 100.00% <0.00%> (ø)
...les/usda/snap/income/deductions/shelter_expense.py 100.00% <0.00%> (ø)
openfisca_us/variables/hhs/medicaid.py

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0951500...2f2ac63. Read the comment docs.

Comment thread .github/PULL_REQUEST_TEMPLATE.md Outdated
@nikhilwoodruff nikhilwoodruff merged commit b7c0cd2 into master Jan 3, 2022
@MaxGhenis MaxGhenis deleted the template branch January 30, 2022 20:18
PavelMakarchuk added a commit that referenced this pull request May 14, 2026
…ld (#8293)

* Fix AMT capital-gains overflow into the 20% bracket below the threshold

Form 6251 Part III Line 27 references the regular-tax ordinary-income
portion (QDCG Worksheet line 5 or Schedule D Tax Worksheet line 21).
The code instead read `loss_limited_net_capital_gains` (the LTCG
amount itself), which shrank the 15% bracket window and pushed gains
into the 20% bracket even when AMTI minus exemption sat far below
the $583,750 MFJ threshold. Line 23 was also storing the tax (= $0
at the current 0% rate) instead of the amount, which the form re-uses
in Line 24 and Line 32.

Both errors compounded across all years 2018-2025. Switching Line 23
to the amount and Line 27 to `dwks14` (already used for Line 20)
restores faithful Form 6251 math.

Updated three existing tests that locked in the pre-fix output and
added an integration test reproducing the taxsim #424 case.

Fixes #8292

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* Add Form 6251 Part III boundary tests for AMT cap-gains fix

Five new cases exercise:
- 0% bracket threshold (entire base in 0%)
- 20% bracket threshold (entire base at 15%)
- Above 20% threshold (real 20% bracket usage)
- Mixed preferential + non-zero regular-tax ordinary income
  (locks in the Line 27 fix specifically)
- Joint filer with substantial cap gains below joint 20% threshold

Each test's expected value was manually computed from Form 6251
Part III line-by-line and matches PE output to the cent. All 60
AMT tests and 821 federal-income tests pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Publish action breaks when no version change Add "issues fixed" to PR template

2 participants