diff --git a/changelog_entry.yaml b/changelog_entry.yaml index e69de29bb2d..7ffd827da09 100644 --- a/changelog_entry.yaml +++ b/changelog_entry.yaml @@ -0,0 +1,4 @@ +- bump: patch + changes: + fixed: + - Minnesota Bill HF1938 impact fix. diff --git a/policyengine_us/reforms/states/mn/walz/mn_walz_hf1938.py b/policyengine_us/reforms/states/mn/walz/mn_walz_hf1938.py index 5468767e595..16f729546dd 100644 --- a/policyengine_us/reforms/states/mn/walz/mn_walz_hf1938.py +++ b/policyengine_us/reforms/states/mn/walz/mn_walz_hf1938.py @@ -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 diff --git a/policyengine_us/tests/policy/contrib/states/mn/walz/mn_walz_hf1938.yaml b/policyengine_us/tests/policy/contrib/states/mn/walz/mn_walz_hf1938.yaml index 3777cfa3785..f6a95c657b2 100644 --- a/policyengine_us/tests/policy/contrib/states/mn/walz/mn_walz_hf1938.yaml +++ b/policyengine_us/tests/policy/contrib/states/mn/walz/mn_walz_hf1938.yaml @@ -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 diff --git a/test.ipynb b/test.ipynb index 851f0f021af..c8dc2a60cab 100644 --- a/test.ipynb +++ b/test.ipynb @@ -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" ] }, {