Skip to content

Commit

Permalink
Minnesota Bill HF1938 impact fix (PolicyEngine#4916)
Browse files Browse the repository at this point in the history
* Minnesota Bill HF1938 impact fix
Fixes PolicyEngine#4915

* test

* name
  • Loading branch information
PavelMakarchuk authored Aug 18, 2024
1 parent e2c8003 commit 9d9ffe0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: patch
changes:
fixed:
- Minnesota Bill HF1938 impact fix.
2 changes: 1 addition & 1 deletion policyengine_us/reforms/states/mn/walz/mn_walz_hf1938.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def formula(tax_unit, period, parameters):
agi = tax_unit("adjusted_gross_income", period)
filing_status = tax_unit("filing_status", period)
excess_agi = max_(
0, agi - p.reduction.income_threshold.low[filing_status]
0, agi - p.reduction.agi_threshold.low[filing_status]
)
excess_agi_offset = (
p.reduction.excess_agi_fraction.low * excess_agi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,14 @@
mn_wfc: 2_206
mn_child_and_working_families_credits: 3_850
mn_refundable_credits: 5_770

- name: Itemized deduction check for 2023 with reform
absolute_error_margin: 0.5
period: 2023
reforms: policyengine_us.reforms.states.mn.walz.mn_walz_hf1938.mn_walz_hf1938
input:
gov.contrib.states.mn.walz.hf1938.repeal: true
interest_deduction: 10_000
state_code: MN
output:
mn_itemized_deductions: 10_000
2 changes: 1 addition & 1 deletion test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"from policyengine_us.data import CalibratedPUFExtendedCPS_2022\n",
"\n",
"CalibratedPUFExtendedCPS_2022().generate()\n",
"#Then rename calibrated_puf_extended_cps_2022.h5 to enhanced_cps_2022.h5 and upload"
"# Then rename calibrated_puf_extended_cps_2022.h5 to enhanced_cps_2022.h5 and upload"
]
},
{
Expand Down

0 comments on commit 9d9ffe0

Please sign in to comment.