From b562a33108cf03a4cdfb791779fe5babfb82a9af Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Tue, 17 Nov 2026 15:25:23 -0500 Subject: [PATCH 1/3] =?UTF-8?q?Backport=20Minnesota=E2=80=99s=20property?= =?UTF-8?q?=20tax=20deduction=20cap=20to=202.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mn-property-tax-deduction-lts.fixed.md | 1 + .../itemized/property_taxes/cap.yaml | 21 ++++++ .../tax/income/mn_property_tax_deduction.yaml | 66 +++++++++++++++++++ .../deductions/mn_itemized_deductions.py | 4 +- .../deductions/mn_personal_property_taxes.py | 13 ++++ .../deductions/mn_property_tax_deduction.py | 32 +++++++++ 6 files changed, 135 insertions(+), 2 deletions(-) create mode 100644 changelog.d/mn-property-tax-deduction-lts.fixed.md create mode 100644 policyengine_us/parameters/gov/states/mn/tax/income/deductions/itemized/property_taxes/cap.yaml create mode 100644 policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/mn_property_tax_deduction.yaml create mode 100644 policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_personal_property_taxes.py create mode 100644 policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_property_tax_deduction.py diff --git a/changelog.d/mn-property-tax-deduction-lts.fixed.md b/changelog.d/mn-property-tax-deduction-lts.fixed.md new file mode 100644 index 00000000000..ba46f5525c7 --- /dev/null +++ b/changelog.d/mn-property-tax-deduction-lts.fixed.md @@ -0,0 +1 @@ +Apply Minnesota’s state cap to combined real estate and personal property tax deductions. diff --git a/policyengine_us/parameters/gov/states/mn/tax/income/deductions/itemized/property_taxes/cap.yaml b/policyengine_us/parameters/gov/states/mn/tax/income/deductions/itemized/property_taxes/cap.yaml new file mode 100644 index 00000000000..e97efca5882 --- /dev/null +++ b/policyengine_us/parameters/gov/states/mn/tax/income/deductions/itemized/property_taxes/cap.yaml @@ -0,0 +1,21 @@ +description: Minnesota caps combined real estate and personal property tax deductions at this amount, by filing status. +SINGLE: + 2019-01-01: 10_000 +SEPARATE: + 2019-01-01: 5_000 +JOINT: + 2019-01-01: 10_000 +HEAD_OF_HOUSEHOLD: + 2019-01-01: 10_000 +SURVIVING_SPOUSE: + 2019-01-01: 10_000 +metadata: + unit: currency-USD + label: Minnesota property tax deduction cap + breakdown: + - filing_status + reference: + - title: Minnesota Statutes 290.0122, subdivision 3(a)(1) + href: https://www.revisor.mn.gov/statutes/cite/290.0122#stat.290.0122.3 + - title: Minnesota 2019 First Special Session Laws, chapter 6, article 1, section 16 + href: https://www.revisor.mn.gov/laws/2019/1/Session+Law/Chapter/6/ diff --git a/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/mn_property_tax_deduction.yaml b/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/mn_property_tax_deduction.yaml new file mode 100644 index 00000000000..0c1329119bc --- /dev/null +++ b/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/mn_property_tax_deduction.yaml @@ -0,0 +1,66 @@ +# 2025 M1SA lines 5–8 combine net eligible real estate tax and personal +# property tax and apply the filing-status cap. Line 26 produces no +# reduction at the adjusted gross incomes used here. +# https://www.revenue.state.mn.us/sites/default/files/2025-12/m1sa-25_0.pdf +# https://www.revisor.mn.gov/statutes/2025/cite/290.0122#stat.290.0122.3 +- name: Case 1, single filer combines property taxes under the Minnesota cap. + absolute_error_margin: 0.01 + period: 2025 + input: + state_code: [MN, MN, MN, MN, WI] + filing_status: [SINGLE, SINGLE, SINGLE, SINGLE, SINGLE] + adjusted_gross_income: [50_000, 50_000, 50_000, 50_000, 50_000] + real_estate_taxes: [6_000, 6_000, 6_000, 0, 6_000] + mn_personal_property_taxes: [3_999, 4_000, 4_001, 0, 0] + output: + # The first three rows put $9,999/$10,000/$10,001 on M1SA line 7. + # The fourth claims no eligible taxes and the fifth lives in Wisconsin. + mn_property_tax_deduction: [9_999, 10_000, 10_000, 0, 0] + mn_itemized_deductions: [9_999, 10_000, 10_000, 0, 0] + +- name: Case 2, real estate taxes alone use the Minnesota cap with the new input omitted. + absolute_error_margin: 0.01 + period: 2025 + input: + state_code: MN + filing_status: SINGLE + adjusted_gross_income: 50_000 + real_estate_taxes: 12_000 + output: + # Without personal property tax, line 8 is still the lesser of the + # $12,000 on line 5 and the Minnesota $10,000 cap. + mn_property_tax_deduction: 10_000 + mn_itemized_deductions: 10_000 + +- name: Case 3, married separate filers use the $5,000 combined property tax cap. + absolute_error_margin: 0.01 + period: 2025 + input: + state_code: [MN, MN, MN] + filing_status: [SEPARATE, SEPARATE, SEPARATE] + adjusted_gross_income: [50_000, 50_000, 50_000] + real_estate_taxes: [3_000, 3_000, 3_000] + mn_personal_property_taxes: [1_999, 2_000, 2_001] + output: + # M1SA line 7 holds $4,999/$5,000/$5,001, and line 8 caps the amount. + mn_property_tax_deduction: [4_999, 5_000, 5_000] + mn_itemized_deductions: [4_999, 5_000, 5_000] + +- name: Case 4, the existing aggregate retains qualifying mortgage interest and property tax. + absolute_error_margin: 0.01 + period: 2025 + input: + state_code: MN + filing_status: SINGLE + adjusted_gross_income: 100_000 + real_estate_taxes: 3_500 + home_mortgage_interest: 10_000 + first_home_mortgage_balance: 200_000 + first_home_mortgage_origination_year: 2020 + output: + # The debt solely financed acquisition of the home. Section 290.0122 + # subd. 5 allows the $10,000 reported interest at that balance. The + # total on M1SA line 27 includes $3,500 from line 8 and $10,000 from + # line 14. This result also applies to the pre-backport aggregate. + mn_property_tax_deduction: 3_500 + mn_itemized_deductions: 13_500 diff --git a/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_itemized_deductions.py b/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_itemized_deductions.py index f161dbe51a7..70f1bfa3db0 100644 --- a/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_itemized_deductions.py +++ b/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_itemized_deductions.py @@ -23,8 +23,8 @@ def formula(tax_unit, period, parameters): # itemized or standard deduction. # ... calculate pre-limitation itemized deductions itm_deds_less_salt = tax_unit("itemized_deductions_less_salt", period) - capped_property_taxes = tax_unit("capped_property_taxes", period) - mn_itm_deds = itm_deds_less_salt + capped_property_taxes + property_taxes = tax_unit("mn_property_tax_deduction", period) + mn_itm_deds = itm_deds_less_salt + property_taxes # ... calculate itemized deductions offset p = parameters(period).gov.states.mn.tax.income.deductions.itemized exempt_deds = add( diff --git a/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_personal_property_taxes.py b/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_personal_property_taxes.py new file mode 100644 index 00000000000..8fdafdadd39 --- /dev/null +++ b/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_personal_property_taxes.py @@ -0,0 +1,13 @@ +from policyengine_us.model_api import * + + +class mn_personal_property_taxes(Variable): + value_type = float + entity = Person + label = "Personal property taxes paid for Minnesota itemized deductions" + unit = USD + definition_period = YEAR + default_value = 0 + documentation = "State and local personal property taxes paid during the year, excluding real estate taxes, for Minnesota Schedule M1SA." + reference = "https://www.revisor.mn.gov/statutes/cite/290.0122#stat.290.0122.3" + defined_for = StateCode.MN diff --git a/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_property_tax_deduction.py b/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_property_tax_deduction.py new file mode 100644 index 00000000000..629ad63d836 --- /dev/null +++ b/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_property_tax_deduction.py @@ -0,0 +1,32 @@ +from policyengine_us.model_api import * + + +class mn_property_tax_deduction(Variable): + value_type = float + entity = TaxUnit + label = "Minnesota property tax deduction" + unit = USD + definition_period = YEAR + documentation = "Real estate and personal property taxes allowable for Minnesota itemized deductions." + reference = ( + "https://www.revisor.mn.gov/statutes/cite/290.0122#stat.290.0122.3", + # Laws 2019, First Special Session, chapter 6, article 1, section 16 + "https://www.revisor.mn.gov/laws/2019/1/Session+Law/Chapter/6/", + ) + defined_for = StateCode.MN + + def formula(tax_unit, period, parameters): + # The Legislature enacted section 290.0122 for taxable years + # beginning after December 31, 2018. For earlier years, return + # real estate taxes under the federal cap. + return tax_unit("capped_property_taxes", period) + + def formula_2019(tax_unit, period, parameters): + property_taxes = add( + tax_unit, period, ["real_estate_taxes", "mn_personal_property_taxes"] + ) + p = parameters( + period + ).gov.states.mn.tax.income.deductions.itemized.property_taxes + filing_status = tax_unit("filing_status", period) + return min_(property_taxes, p.cap[filing_status]) From ef3df08e162db56912ea7d8584f340f4e096a699 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 30 Nov 2026 17:13:56 +0000 Subject: [PATCH 2/3] Cover Minnesota property tax deduction boundaries Document the applicable tax years and qualifying personal property taxes, and repair the Minnesota form references. Co-Authored-By: GPT-6.2 Sol --- ...dex-mn-property-tax-deduction-lts.fixed.md | 1 + .../mn-property-tax-deduction-lts.fixed.md | 1 - .../tax/income/mn_property_tax_deduction.yaml | 57 +++++++++++++++++++ .../deductions/mn_itemized_deductions.py | 8 +-- .../deductions/mn_personal_property_taxes.py | 6 +- .../deductions/mn_property_tax_deduction.py | 6 +- 6 files changed, 72 insertions(+), 7 deletions(-) create mode 100644 changelog.d/codex-mn-property-tax-deduction-lts.fixed.md delete mode 100644 changelog.d/mn-property-tax-deduction-lts.fixed.md diff --git a/changelog.d/codex-mn-property-tax-deduction-lts.fixed.md b/changelog.d/codex-mn-property-tax-deduction-lts.fixed.md new file mode 100644 index 00000000000..32bec589b56 --- /dev/null +++ b/changelog.d/codex-mn-property-tax-deduction-lts.fixed.md @@ -0,0 +1 @@ +Applied Minnesota’s state cap to combined real estate and personal property tax deductions. diff --git a/changelog.d/mn-property-tax-deduction-lts.fixed.md b/changelog.d/mn-property-tax-deduction-lts.fixed.md deleted file mode 100644 index ba46f5525c7..00000000000 --- a/changelog.d/mn-property-tax-deduction-lts.fixed.md +++ /dev/null @@ -1 +0,0 @@ -Apply Minnesota’s state cap to combined real estate and personal property tax deductions. diff --git a/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/mn_property_tax_deduction.yaml b/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/mn_property_tax_deduction.yaml index 0c1329119bc..254fa6a41d0 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/mn_property_tax_deduction.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/mn_property_tax_deduction.yaml @@ -64,3 +64,60 @@ # line 14. This result also applies to the pre-backport aggregate. mn_property_tax_deduction: 3_500 mn_itemized_deductions: 13_500 + +- name: The 2018 fallback uses only real estate taxes. + absolute_error_margin: 0.01 + period: 2018 + input: + state_code: MN + filing_status: SINGLE + adjusted_gross_income: 50_000 + real_estate_taxes: 8_000 + mn_personal_property_taxes: 4_000 + output: + # The legacy deduction is min($8,000, $10,000) = $8,000. + mn_property_tax_deduction: 8_000 + mn_itemized_deductions: 8_000 + +# Minnesota Laws 2019, First Special Session, chapter 6, article 1, section 16. +# https://www.revisor.mn.gov/laws/2019/1/Session+Law/Chapter/6/#laws.1.16.0 +- name: The combined Minnesota cap applies by filing status in its first year. + absolute_error_margin: 0.01 + period: 2019 + input: + state_code: [MN, MN, MN, MN] + filing_status: [SINGLE, SEPARATE, HEAD_OF_HOUSEHOLD, SURVIVING_SPOUSE] + adjusted_gross_income: [50_000, 50_000, 50_000, 50_000] + real_estate_taxes: [7_000, 3_000, 7_000, 7_000] + mn_personal_property_taxes: [4_000, 4_000, 4_000, 4_000] + output: + # $7,000 + $4,000 = $11,000, capped at $10,000 for single, head of + # household and surviving spouse. $3,000 + $4,000 = $7,000, capped + # at $5,000 for married filing separately. + mn_property_tax_deduction: [10_000, 5_000, 10_000, 10_000] + mn_itemized_deductions: [10_000, 5_000, 10_000, 10_000] + +- name: The joint cap applies once to the property taxes paid by both spouses. + absolute_error_margin: 0.01 + period: 2019 + input: + people: + head: + real_estate_taxes: 4_000 + mn_personal_property_taxes: 1_000 + spouse: + real_estate_taxes: 3_000 + mn_personal_property_taxes: 4_000 + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + adjusted_gross_income: 50_000 + households: + household: + members: [head, spouse] + state_code: MN + output: + # $4,000 + $1,000 + $3,000 + $4,000 = $12,000, capped at $10,000. + mn_property_tax_deduction: 10_000 + mn_itemized_deductions: 10_000 diff --git a/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_itemized_deductions.py b/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_itemized_deductions.py index 70f1bfa3db0..c6e075a804a 100644 --- a/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_itemized_deductions.py +++ b/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_itemized_deductions.py @@ -8,10 +8,10 @@ class mn_itemized_deductions(Variable): unit = USD definition_period = YEAR reference = ( - "https://www.revenue.state.mn.us/sites/default/files/2021-12/m1_21_0.pdf" - "https://www.revenue.state.mn.us/sites/default/files/2023-01/m1_inst_21.pdf" - "https://www.revenue.state.mn.us/sites/default/files/2022-12/m1_22.pdf" - "https://www.revenue.state.mn.us/sites/default/files/2023-03/m1_inst_22.pdf" + "https://www.revenue.state.mn.us/sites/default/files/2023-12/m1_21_0.pdf", + "https://www.revenue.state.mn.us/sites/default/files/2023-12/m1_inst_21.pdf", + "https://www.revenue.state.mn.us/sites/default/files/2023-12/m1_22.pdf", + "https://www.revenue.state.mn.us/sites/default/files/2024-02/m1-inst-22.pdf", ) defined_for = StateCode.MN diff --git a/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_personal_property_taxes.py b/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_personal_property_taxes.py index 8fdafdadd39..91000395746 100644 --- a/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_personal_property_taxes.py +++ b/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_personal_property_taxes.py @@ -8,6 +8,10 @@ class mn_personal_property_taxes(Variable): unit = USD definition_period = YEAR default_value = 0 - documentation = "State and local personal property taxes paid during the year, excluding real estate taxes, for Minnesota Schedule M1SA." + documentation = ( + "Qualifying state and local personal property taxes paid during the year " + "for Minnesota Schedule M1SA line 6. Include only taxes based on value " + "alone and imposed annually." + ) reference = "https://www.revisor.mn.gov/statutes/cite/290.0122#stat.290.0122.3" defined_for = StateCode.MN diff --git a/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_property_tax_deduction.py b/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_property_tax_deduction.py index 629ad63d836..f2e0cfaed19 100644 --- a/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_property_tax_deduction.py +++ b/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_property_tax_deduction.py @@ -7,7 +7,11 @@ class mn_property_tax_deduction(Variable): label = "Minnesota property tax deduction" unit = USD definition_period = YEAR - documentation = "Real estate and personal property taxes allowable for Minnesota itemized deductions." + documentation = ( + "Before 2019, real estate taxes limited by the federal SALT cap. " + "From 2019, combined qualifying real estate and personal property taxes " + "limited by the Minnesota cap for the filing status." + ) reference = ( "https://www.revisor.mn.gov/statutes/cite/290.0122#stat.290.0122.3", # Laws 2019, First Special Session, chapter 6, article 1, section 16 From 959ad4e200ee14e0cca3258f78e6dc729b023d34 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Tue, 1 Dec 2026 04:51:35 +0000 Subject: [PATCH 3/3] Floor Minnesota's property tax deduction at zero Co-Authored-By: GPT-6.2 Sol --- ...dex-mn-property-tax-deduction-lts.fixed.md | 2 +- .../tax/income/mn_property_tax_deduction.yaml | 80 ++++++++++++++++++- .../deductions/mn_property_tax_deduction.py | 5 +- 3 files changed, 82 insertions(+), 5 deletions(-) diff --git a/changelog.d/codex-mn-property-tax-deduction-lts.fixed.md b/changelog.d/codex-mn-property-tax-deduction-lts.fixed.md index 32bec589b56..4768141777d 100644 --- a/changelog.d/codex-mn-property-tax-deduction-lts.fixed.md +++ b/changelog.d/codex-mn-property-tax-deduction-lts.fixed.md @@ -1 +1 @@ -Applied Minnesota’s state cap to combined real estate and personal property tax deductions. +Applied Minnesota’s cap to combined real estate and personal property taxes and prevented excess rebates from reducing other itemized deductions. diff --git a/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/mn_property_tax_deduction.yaml b/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/mn_property_tax_deduction.yaml index 254fa6a41d0..64a58040970 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/mn_property_tax_deduction.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/mn/tax/income/mn_property_tax_deduction.yaml @@ -1,6 +1,5 @@ # 2025 M1SA lines 5–8 combine net eligible real estate tax and personal -# property tax and apply the filing-status cap. Line 26 produces no -# reduction at the adjusted gross incomes used here. +# property tax and apply the filing-status cap before the line 26 reduction. # https://www.revenue.state.mn.us/sites/default/files/2025-12/m1sa-25_0.pdf # https://www.revisor.mn.gov/statutes/2025/cite/290.0122#stat.290.0122.3 - name: Case 1, single filer combines property taxes under the Minnesota cap. @@ -121,3 +120,80 @@ # $4,000 + $1,000 + $3,000 + $4,000 = $12,000, capped at $10,000. mn_property_tax_deduction: 10_000 mn_itemized_deductions: 10_000 + +- name: An over-rebate cannot reduce otherwise deductible mortgage interest. + period: 2025 + absolute_error_margin: 0.01 + input: + state_code: MN + filing_status: SINGLE + age: 40 + employment_income: 100_000 + real_estate_taxes: -1_000 + home_mortgage_interest: 16_000 + first_home_mortgage_balance: 200_000 + first_home_mortgage_origination_year: 2020 + output: + # A net property tax of -$1,000 gives a $0 deduction. All $16,000 + # of interest qualifies, so taxable income is $100,000 - $16,000. + mn_property_tax_deduction: 0 + mn_itemized_deductions: 16_000 + mn_deductions: 16_000 + mn_taxable_income: 84_000 + +- name: Qualifying personal property taxes alone count while income taxes do not. + period: 2025 + absolute_error_margin: 0.01 + input: + state_code: MN + filing_status: SINGLE + adjusted_gross_income: 50_000 + mn_personal_property_taxes: 3_000 + state_and_local_sales_or_income_tax: 15_000 + output: + # $0 real estate tax + $3,000 personal property tax = $3,000. + # The $15,000 of state and local income tax does not enter the sum. + mn_property_tax_deduction: 3_000 + mn_itemized_deductions: 3_000 + +- name: Separate returns in the same household have independent Minnesota caps. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + first: + real_estate_taxes: 6_000 + second: + mn_personal_property_taxes: 4_000 + tax_units: + first_return: + members: [first] + filing_status: SEPARATE + adjusted_gross_income: 50_000 + second_return: + members: [second] + filing_status: SEPARATE + adjusted_gross_income: 50_000 + households: + household: + members: [first, second] + state_code: MN + output: + # The first return caps $6,000 at $5,000. The second deducts all $4,000. + mn_property_tax_deduction: [5_000, 4_000] + mn_itemized_deductions: [5_000, 4_000] + +- name: The Minnesota AGI reduction uses the capped taxes. + period: 2025 + absolute_error_margin: 0.01 + input: + state_code: [MN, MN] + filing_status: [SINGLE, SINGLE] + adjusted_gross_income: [238_950, 239_950] + real_estate_taxes: [10_000, 10_000] + mn_personal_property_taxes: [2_000, 2_000] + output: + # Cap $12,000 at $10,000. Reduce that by 3% of $0 or $1,000 + # above the $238,950 AGI threshold, giving $10,000 or $9,970. + mn_property_tax_deduction: [10_000, 10_000] + mn_itemized_deductions: [10_000, 9_970] diff --git a/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_property_tax_deduction.py b/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_property_tax_deduction.py index f2e0cfaed19..bde69f1a984 100644 --- a/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_property_tax_deduction.py +++ b/policyengine_us/variables/gov/states/mn/tax/income/deductions/mn_property_tax_deduction.py @@ -10,12 +10,13 @@ class mn_property_tax_deduction(Variable): documentation = ( "Before 2019, real estate taxes limited by the federal SALT cap. " "From 2019, combined qualifying real estate and personal property taxes " - "limited by the Minnesota cap for the filing status." + "are floored at zero and limited by the Minnesota cap for the filing status." ) reference = ( "https://www.revisor.mn.gov/statutes/cite/290.0122#stat.290.0122.3", # Laws 2019, First Special Session, chapter 6, article 1, section 16 "https://www.revisor.mn.gov/laws/2019/1/Session+Law/Chapter/6/", + "https://www.revenue.state.mn.us/sites/default/files/2025-12/m1sa-25_0.pdf#page=3", ) defined_for = StateCode.MN @@ -33,4 +34,4 @@ def formula_2019(tax_unit, period, parameters): period ).gov.states.mn.tax.income.deductions.itemized.property_taxes filing_status = tax_unit("filing_status", period) - return min_(property_taxes, p.cap[filing_status]) + return min_(max_(property_taxes, 0), p.cap[filing_status])