From 299d84af2f2f5178a72c97dd7d9f7c1e89a3a18a Mon Sep 17 00:00:00 2001 From: David Trimmer Date: Thu, 19 Nov 2026 18:40:09 -0500 Subject: [PATCH 1/5] Count SSI and net losses by federal line in Maine fairness credit income Maine's sales and property tax fairness credits count payments under the federal Social Security Act, which include SSI (Schedule PTFC/STFC lines 1a and 2b), and add back only a federal line's net loss (line 2d). The income now adds ssi and starts from federal total income with each line's net loss added back, so a rental loss offsets partnership income on Schedule 1 line 5 and spouses' Schedule C, Schedule F and capital results net on their lines. Co-Authored-By: Claude Opus 5.5 --- .../me-fairness-credit-income.fixed.md | 1 + .../federal_lines/form_1040_line_7.yaml | 22 +++ .../federal_lines/schedule_1_line_3.yaml | 21 +++ .../federal_lines/schedule_1_line_5.yaml | 28 +++ .../federal_lines/schedule_1_line_6.yaml | 20 +++ .../credits/fairness/income_sources.yaml | 13 +- .../me_fairness_credit_federal_income.yaml | 164 ++++++++++++++++++ ...d_property_tax_fairness_credit_income.yaml | 115 ++++++++++++ .../gov/states/me/tax/income/integration.yaml | 4 + .../me_fairness_credit_federal_income.py | 56 ++++++ 10 files changed, 442 insertions(+), 2 deletions(-) create mode 100644 changelog.d/me-fairness-credit-income.fixed.md create mode 100644 policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/form_1040_line_7.yaml create mode 100644 policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/schedule_1_line_3.yaml create mode 100644 policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/schedule_1_line_5.yaml create mode 100644 policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/schedule_1_line_6.yaml create mode 100644 policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.yaml create mode 100644 policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_sales_and_property_tax_fairness_credit_income.yaml create mode 100644 policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.py diff --git a/changelog.d/me-fairness-credit-income.fixed.md b/changelog.d/me-fairness-credit-income.fixed.md new file mode 100644 index 00000000000..3362ed1428c --- /dev/null +++ b/changelog.d/me-fairness-credit-income.fixed.md @@ -0,0 +1 @@ +Maine sales and property tax fairness credit income now counts SSI and nets a loss against income on the same federal line, so only a line's net loss is added back (Schedule PTFC/STFC line 2d). diff --git a/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/form_1040_line_7.yaml b/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/form_1040_line_7.yaml new file mode 100644 index 00000000000..f62e71a432b --- /dev/null +++ b/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/form_1040_line_7.yaml @@ -0,0 +1,22 @@ +description: Maine combines these income sources, which share federal Form 1040 line 7, and adds back only their net loss under the sales and property tax fairness credits. +values: + 2021-01-01: + # Net capital gain or loss and capital gain distributions, which net + # against capital losses on Schedule D line 13. + - capital_gains + - non_sch_d_capital_gains +metadata: + unit: list + period: year + label: Maine fairness credit Form 1040 line 7 sources + reference: + - title: §5213-A. Sales tax fairness credit (1) (B) (1) + href: https://legislature.maine.gov/statutes/36/title36sec5213-A.html + - title: §5219-KK. Property tax fairness credit for tax (1) (D) (1) + href: https://legislature.maine.gov/statutes/36/title36sec5219-KK.html + - title: "2021 Form 1040ME Schedule PTFC/STFC, line 2d and instructions #page 1,4" + href: https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/21_1040me_sched_pstfc_dwnldff.pdf#page=1 + - title: "2025 Form 1040ME Schedule PTFC/STFC, line 2d and instructions #page 1,4" + href: https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/25_1040me_sch_ptfc_fillable.pdf#page=1 + - title: 2025 Form 1040, line 7a - Capital gain or (loss) + href: https://www.irs.gov/pub/irs-prior/f1040--2025.pdf#page=1 diff --git a/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/schedule_1_line_3.yaml b/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/schedule_1_line_3.yaml new file mode 100644 index 00000000000..89ccf01d25e --- /dev/null +++ b/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/schedule_1_line_3.yaml @@ -0,0 +1,21 @@ +description: Maine combines these income sources, which share federal Schedule 1 line 3, and adds back only their net loss under the sales and property tax fairness credits. +values: + 2021-01-01: + # Schedule C profit or loss, both kinds of business. + - self_employment_income + - sstb_self_employment_income +metadata: + unit: list + period: year + label: Maine fairness credit Schedule 1 line 3 sources + reference: + - title: §5213-A. Sales tax fairness credit (1) (B) (1) + href: https://legislature.maine.gov/statutes/36/title36sec5213-A.html + - title: §5219-KK. Property tax fairness credit for tax (1) (D) (1) + href: https://legislature.maine.gov/statutes/36/title36sec5219-KK.html + - title: "2021 Form 1040ME Schedule PTFC/STFC, line 2d and instructions #page 1,4" + href: https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/21_1040me_sched_pstfc_dwnldff.pdf#page=1 + - title: "2025 Form 1040ME Schedule PTFC/STFC, line 2d and instructions #page 1,4" + href: https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/25_1040me_sch_ptfc_fillable.pdf#page=1 + - title: 2025 Schedule 1 (Form 1040), line 3 - Business income or (loss) + href: https://www.irs.gov/pub/irs-prior/f1040s1--2025.pdf#page=1 diff --git a/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/schedule_1_line_5.yaml b/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/schedule_1_line_5.yaml new file mode 100644 index 00000000000..85208332c09 --- /dev/null +++ b/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/schedule_1_line_5.yaml @@ -0,0 +1,28 @@ +description: Maine combines these income sources, which share federal Schedule 1 line 5, and adds back only their net loss under the sales and property tax fairness credits. +values: + 2021-01-01: + # Schedule E line 41 combines rental real estate and royalties (line 26), + # partnerships and S corporations (line 32), estates and trusts (line 37), + # REMICs (line 39, no input) and net farm rental income from Form 4835 + # (line 40), and carries the total to Schedule 1 line 5. + - rental_income + - partnership_s_corp_income + - estate_income + - farm_rent_income +metadata: + unit: list + period: year + label: Maine fairness credit Schedule 1 line 5 sources + reference: + - title: §5213-A. Sales tax fairness credit (1) (B) (1) + href: https://legislature.maine.gov/statutes/36/title36sec5213-A.html + - title: §5219-KK. Property tax fairness credit for tax (1) (D) (1) + href: https://legislature.maine.gov/statutes/36/title36sec5219-KK.html + - title: "2021 Form 1040ME Schedule PTFC/STFC, line 2d and instructions #page 1,4" + href: https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/21_1040me_sched_pstfc_dwnldff.pdf#page=1 + - title: "2025 Form 1040ME Schedule PTFC/STFC, line 2d and instructions #page 1,4" + href: https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/25_1040me_sch_ptfc_fillable.pdf#page=1 + - title: 2025 Schedule 1 (Form 1040), line 5 - Rental real estate, royalties, partnerships, S corporations, trusts, etc. + href: https://www.irs.gov/pub/irs-prior/f1040s1--2025.pdf#page=1 + - title: 2025 Schedule E (Form 1040), line 41 - Total income or (loss) + href: https://www.irs.gov/pub/irs-prior/f1040se--2025.pdf#page=2 diff --git a/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/schedule_1_line_6.yaml b/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/schedule_1_line_6.yaml new file mode 100644 index 00000000000..5ce69d5966f --- /dev/null +++ b/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/schedule_1_line_6.yaml @@ -0,0 +1,20 @@ +description: Maine combines these income sources, which share federal Schedule 1 line 6, and adds back only their net loss under the sales and property tax fairness credits. +values: + 2021-01-01: + # Schedule F farm profit or loss. + - farm_operations_income +metadata: + unit: list + period: year + label: Maine fairness credit Schedule 1 line 6 sources + reference: + - title: §5213-A. Sales tax fairness credit (1) (B) (1) + href: https://legislature.maine.gov/statutes/36/title36sec5213-A.html + - title: §5219-KK. Property tax fairness credit for tax (1) (D) (1) + href: https://legislature.maine.gov/statutes/36/title36sec5219-KK.html + - title: "2021 Form 1040ME Schedule PTFC/STFC, line 2d and instructions #page 1,4" + href: https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/21_1040me_sched_pstfc_dwnldff.pdf#page=1 + - title: "2025 Form 1040ME Schedule PTFC/STFC, line 2d and instructions #page 1,4" + href: https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/25_1040me_sch_ptfc_fillable.pdf#page=1 + - title: 2025 Schedule 1 (Form 1040), line 6 - Farm income or (loss) + href: https://www.irs.gov/pub/irs-prior/f1040s1--2025.pdf#page=1 diff --git a/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/income_sources.yaml b/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/income_sources.yaml index 69511996e9f..7cc1dde8c9f 100644 --- a/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/income_sources.yaml +++ b/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/income_sources.yaml @@ -1,14 +1,23 @@ description: Maine accounts for the following income sources for the sales and property tax credits. values: 2021-01-01: - - irs_gross_income + # Federal total income (Schedule PTFC/STFC line 2a) with each federal + # line's net loss added back (line 2d). + - me_fairness_credit_federal_income - tax_exempt_social_security - tax_exempt_interest_income + # "Payments received under the federal Social Security Act" include + # supplemental security income (Schedule PTFC/STFC lines 1a and 2b). + - ssi metadata: unit: list label: Maine sales and property tax credit income sources reference: - - title: §5213-A. Sales tax fairness credit (1) (B) + - title: §5213-A. Sales tax fairness credit (1) (B) href: https://legislature.maine.gov/statutes/36/title36sec5213-A.html - title: §5219-KK. Property tax fairness credit for tax (1) (D) href: https://legislature.maine.gov/statutes/36/title36sec5219-KK.html + - title: "2021 Form 1040ME Schedule PTFC/STFC, lines 1a-3 and instructions #page 1,3-4" + href: https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/21_1040me_sched_pstfc_dwnldff.pdf#page=1 + - title: "2025 Form 1040ME Schedule PTFC/STFC, lines 1a-3 and instructions #page 1,3-4" + href: https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/25_1040me_sch_ptfc_fillable.pdf#page=1 diff --git a/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.yaml new file mode 100644 index 00000000000..557437f2680 --- /dev/null +++ b/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.yaml @@ -0,0 +1,164 @@ +# Schedule PTFC/STFC line 2a (federal total income, Form 1040 line 9) plus +# line 2d, which adds back "any negative amount (net loss)" on Form 1040 line 7 +# and Schedule 1 lines 3, 4, 5, 6 and 8a through 8z. 36 M.R.S. +# 5213-A(1)(B)(1) and 5219-KK(1)(D)(1) add back "any net loss resulting from +# combining" the Schedule E items that make up Schedule 1 line 5. + +- name: A Schedule 1 line 5 net loss is added back only to zero. + period: 2025 + absolute_error_margin: 0.01 + input: + state_code: ME + employment_income: 20_000 + partnership_s_corp_income: 3_000 + rental_income: -5_000 + output: + # Line 5: 3,000 - 5,000 = -2,000. Line 2a: 20,000 - 2,000 = 18,000. + # Line 2d: 2,000. 18,000 + 2,000 = 20,000. + me_fairness_credit_federal_income: 20_000 + +- name: Other Schedule E items net on Schedule 1 line 5. + period: 2025 + absolute_error_margin: 0.01 + input: + state_code: ME + rental_income: 6_000 + estate_income: -1_000 + farm_rent_income: -2_000 + output: + # Schedule E line 41: 6,000 - 1,000 - 2,000 = 3,000, not a net loss. + me_fairness_credit_federal_income: 3_000 + +- name: A loss on one line does not offset income on another. + period: 2025 + absolute_error_margin: 0.01 + input: + state_code: ME + employment_income: 20_000 + rental_income: 5_000 + self_employment_income: -5_000 + output: + # Schedule 1 line 3: -5,000; line 5: 5,000. Line 2a: 20,000 - 5,000 + + # 5,000 = 20,000. Line 2d adds back the line 3 loss: 20,000 + 5,000 = + # 25,000. + me_fairness_credit_federal_income: 25_000 + +- name: Two kinds of Schedule C business net on Schedule 1 line 3. + period: 2025 + absolute_error_margin: 0.01 + input: + state_code: ME + self_employment_income: 10_000 + sstb_self_employment_income: -3_000 + output: + # Line 3: 10,000 - 3,000 = 7,000, not a net loss. + me_fairness_credit_federal_income: 7_000 + +- name: A spouse's Schedule C loss offsets the other spouse's Schedule C profit on a joint return. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 45 + employment_income: 20_000 + self_employment_income: 10_000 + spouse: + age: 45 + self_employment_income: -4_000 + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + households: + household: + members: [head, spouse] + state_code: ME + output: + # Line 3: 10,000 - 4,000 = 6,000. 20,000 wages + 6,000 = 26,000. + me_fairness_credit_federal_income: 26_000 + +- name: A spouse's farm loss offsets the other spouse's farm profit on a joint return. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 45 + farm_operations_income: 8_000 + spouse: + age: 45 + farm_operations_income: -3_000 + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + households: + household: + members: [head, spouse] + state_code: ME + output: + # Schedule 1 line 6: 8,000 - 3,000 = 5,000. + me_fairness_credit_federal_income: 5_000 + +- name: A spouse's capital loss offsets the other spouse's capital gain on a joint return. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 45 + employment_income: 20_000 + long_term_capital_gains: 10_000 + spouse: + age: 45 + short_term_capital_gains: -4_000 + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + households: + household: + members: [head, spouse] + state_code: ME + output: + # Form 1040 line 7: 10,000 - 4,000 = 6,000. 20,000 + 6,000 = 26,000. + me_fairness_credit_federal_income: 26_000 + +- name: Capital gain distributions net against a capital loss, and the net loss is added back. + period: 2025 + absolute_error_margin: 0.01 + input: + state_code: ME + employment_income: 20_000 + non_sch_d_capital_gains: 2_000 + long_term_capital_gains: -5_000 + output: + # Schedule D line 13 takes the 2,000 of distributions: 2,000 - 5,000 = + # -3,000, the most a single filer deducts, on Form 1040 line 7. Line 2a: + # 20,000 - 3,000 = 17,000. Line 2d: 3,000. 17,000 + 3,000 = 20,000. + me_fairness_credit_federal_income: 20_000 + +- name: A dependent's rental loss is on the dependent's own return. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 45 + partnership_s_corp_income: 10_000 + child: + age: 10 + rental_income: -5_000 + tax_units: + tax_unit: + members: [head, child] + filing_status: HEAD_OF_HOUSEHOLD + households: + household: + members: [head, child] + state_code: ME + output: + # The parent's Schedule 1 line 5 holds only the 10,000 of partnership + # income. + me_fairness_credit_federal_income: 10_000 diff --git a/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_sales_and_property_tax_fairness_credit_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_sales_and_property_tax_fairness_credit_income.yaml new file mode 100644 index 00000000000..84c059d92cd --- /dev/null +++ b/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_sales_and_property_tax_fairness_credit_income.yaml @@ -0,0 +1,115 @@ +# 36 M.R.S. 5213-A(1)(B) and 5219-KK(1)(D): income is federal adjusted gross +# income increased by listed losses, interest and "Payments received under the +# federal Social Security Act ... to the extent not included in federal +# adjusted gross income". Schedule PTFC/STFC line 3 adds federal total income +# (line 2a), Social Security Act payments and interest left out of it (lines +# 2b and 2c) and each federal line's net loss (line 2d). + +- name: SSI is a payment received under the federal Social Security Act. + period: 2025 + absolute_error_margin: 0.01 + input: + age: 70 + state_code: ME + social_security_retirement: 10_000 + ssi: 3_000 + output: + # 2025 Schedule PTFC/STFC instructions, lines 1a and 2b: "supplemental + # security income". None of the 10,000 of Social Security is taxable + # (provisional income 5,000). 10,000 + 3,000 SSI = 13,000. + me_sales_and_property_tax_fairness_credit_income: 13_000 + +- name: A rental loss absorbed by partnership income on the same federal line is not added back. + period: 2025 + absolute_error_margin: 0.01 + input: + age: 45 + state_code: ME + employment_income: 20_000 + partnership_s_corp_income: 10_000 + rental_income: -5_000 + output: + # 5219-KK(1)(D)(1) adds back "any net loss resulting from combining" the + # rental and partnership income; Schedule PTFC/STFC line 2d adds back a + # negative Schedule 1 line 5. Line 5: 10,000 - 5,000 = 5,000, not a net + # loss, so there is no loss add-back. 20,000 wages + 5,000 = 25,000. + me_sales_and_property_tax_fairness_credit_income: 25_000 + +- name: A senior renter's SSI reduces the property tax fairness credit. + period: 2025 + absolute_error_margin: 0.01 + input: + age: 70 + state_code: ME + social_security_retirement: 10_000 + ssi: 3_000 + rent: 12_000 + output: + # Line 3: 10,000 Social Security (none taxable) + 3,000 SSI = 13,000. + me_sales_and_property_tax_fairness_credit_income: 13_000 + # Line 5e: 15% of 12,000 = 1,800. Line 8: 4,100 (65 or older). + # Line 9: min(1,800, 4,100) = 1,800. Line 10: 4% of 13,000 = 520. + # Line 11: 1,800 - 520 = 1,280. Line 13: min(1,280, 2,000) = 1,280. + # Line 16: min(1,280, 1,800) = 1,280. + # Without the SSI: 1,800 - 4% of 10,000 = 1,400. + me_property_tax_fairness_credit: 1_280 + # Single, line 3 up to 25,450: 155. + me_sales_tax_fairness_credit: 155 + +- name: Wages and SSI exactly at the single sales tax fairness credit phase-out start. + period: 2025 + absolute_error_margin: 0.01 + input: + age: 70 + state_code: ME + employment_income: 23_350 + ssi: 2_100 + output: + # 23,350 + 2,100 = 25,450, the top of the first row of the 2025 single + # table (0 to 25,450: 155). + me_sales_and_property_tax_fairness_credit_income: 25_450 + me_sales_tax_fairness_credit: 155 + +- name: SSI one dollar higher moves income into the next row of the sales tax fairness credit table. + period: 2025 + absolute_error_margin: 0.01 + input: + age: 70 + state_code: ME + employment_income: 23_350 + ssi: 2_101 + output: + # 23,350 + 2,101 = 25,451. The 2025 single table: 25,451 to 25,950 is 145 + # (155 less 10 for one 500 increment). + me_sales_and_property_tax_fairness_credit_income: 25_451 + me_sales_tax_fairness_credit: 145 + +- name: A rental loss that only offsets partnership income leaves income at the single phase-out start. + period: 2025 + absolute_error_margin: 0.01 + input: + age: 45 + state_code: ME + employment_income: 25_450 + partnership_s_corp_income: 5_000 + rental_income: -5_000 + output: + # Schedule 1 line 5: 5,000 - 5,000 = 0, so nothing is added back. + # 25,450 wages + 0 = 25,450: 155. Counting the partnership income + # without the loss would give 30,450 and 155 - 10 x 10 = 55. + me_sales_and_property_tax_fairness_credit_income: 25_450 + me_sales_tax_fairness_credit: 155 + +- name: A rental loss one dollar smaller leaves a dollar of Schedule 1 line 5 income. + period: 2025 + absolute_error_margin: 0.01 + input: + age: 45 + state_code: ME + employment_income: 25_450 + partnership_s_corp_income: 5_000 + rental_income: -4_999 + output: + # Schedule 1 line 5: 5,000 - 4,999 = 1. 25,450 + 1 = 25,451: 145. + me_sales_and_property_tax_fairness_credit_income: 25_451 + me_sales_tax_fairness_credit: 145 diff --git a/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/integration.yaml b/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/integration.yaml index c72d4c3b14f..dc323f0f379 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/integration.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/integration.yaml @@ -9,12 +9,16 @@ qualified_dividend_income: 95.39 rent: 7_957.51 taxable_interest_income: 328.40 + # A TAXSIM record holds tax inputs only, so SSI is 0, as snap and tanf + # are below; SSI counts in fairness credit income. + ssi: 0 is_tax_unit_head: true person2: age: 77 employment_income: 0.0 qualified_dividend_income: 95.39 taxable_interest_income: 328.40 + ssi: 0 is_tax_unit_spouse: true tax_units: tax_unit: diff --git a/policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.py b/policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.py new file mode 100644 index 00000000000..8d41ea457ee --- /dev/null +++ b/policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.py @@ -0,0 +1,56 @@ +from policyengine_us.model_api import * + + +class me_fairness_credit_federal_income(Variable): + value_type = float + entity = TaxUnit + unit = USD + label = "Maine fairness credit federal income with net losses added back" + documentation = ( + "Federal total income with any net loss on a federal income line " + "added back, Schedule PTFC/STFC line 2a plus line 2d. A loss first " + "offsets other income on its own line (Form 1040 line 7, Schedule 1 " + "lines 3, 5 and 6), so only the line's net loss is added back." + ) + definition_period = YEAR + reference = ( + "https://legislature.maine.gov/statutes/36/title36sec5213-A.html", # 1. B. (1) + "https://legislature.maine.gov/statutes/36/title36sec5219-KK.html", # 1. D. (1) + # PDF pages 1, 4: lines 2a and 2d, and the line 2d instructions + "https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/25_1040me_sch_ptfc_fillable.pdf#page=1", + ) + defined_for = StateCode.ME + + def formula(tax_unit, period, parameters): + lines = parameters( + period + ).gov.states.me.tax.income.credits.fairness.federal_lines + gross_income_sources = parameters(period).gov.irs.gross_income.sources + person = tax_unit.members + # A tax unit dependent's items are on the dependent's own return, as + # in irs_gross_income. + not_dependent = ~person("is_tax_unit_dependent", period) + # irs_gross_income adds each filer's income from each source and + # leaves out its losses: federal total income with every loss added + # back. + income = add(tax_unit, period, ["irs_gross_income"]) + # Line 2d adds back only a line's net loss, so a loss first offsets + # the income on the same line, the head's and the spouse's together. + # Schedule 1 line 4 (other_net_gain) is already a tax unit amount, and + # the model has no losses on the other lines. + for line in [ + lines.schedule_1_line_3, + lines.schedule_1_line_5, + lines.schedule_1_line_6, + lines.form_1040_line_7, + ]: + line_income = 0 + line_losses = 0 + for source in line: + # Only the sources federal gross income counts. + if source in gross_income_sources: + amount = not_dependent * add(person, period, [source]) + line_income += tax_unit.sum(max_(0, amount)) + line_losses += tax_unit.sum(max_(0, -amount)) + income = income - min_(line_income, line_losses) + return income From c379fed33b2d56d7dc4b439c34f7d8c88e27009b Mon Sep 17 00:00:00 2001 From: David Trimmer Date: Thu, 19 Nov 2026 19:13:17 -0500 Subject: [PATCH 2/5] Test a Maine line source that a reform takes out of federal gross income Covers the false side of the gross-income-source check in me_fairness_credit_federal_income, which codecov flagged as a partial line. Co-Authored-By: Claude Opus 5.5 --- .../me_fairness_credit_federal_income.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.yaml index 557437f2680..67431a04556 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.yaml @@ -17,6 +17,21 @@ # Line 2d: 2,000. 18,000 + 2,000 = 20,000. me_fairness_credit_federal_income: 20_000 +- name: A source a reform takes out of federal gross income doesn't net on its line. + period: 2025 + absolute_error_margin: 0.01 + input: + # The 2025 federal gross income sources without rental_income. + gov.irs.gross_income.sources: [irs_employment_income, taxable_dependent_care_benefits, taxable_strike_benefits, self_employment_income, sstb_self_employment_income, partnership_s_corp_income, farm_operations_income, farm_rent_income, other_net_gain_gross_income, capital_gains, non_sch_d_capital_gains, taxable_interest_income, dividend_income, taxable_pension_income, taxable_disability_benefits, debt_relief, estate_income, taxable_unemployment_compensation, taxable_social_security, illicit_income, taxable_retirement_distributions, taxable_roth_conversions, miscellaneous_income, gambling_winnings, ak_permanent_fund_dividend, taxable_alimony_income, salt_refund_income, military_retirement_income] + state_code: ME + employment_income: 20_000 + partnership_s_corp_income: 3_000 + rental_income: -5_000 + output: + # The rental loss isn't in federal income, so line 5 is the 3,000 + # partnership income alone: 20,000 + 3,000 = 23,000, nothing to add back. + me_fairness_credit_federal_income: 23_000 + - name: Other Schedule E items net on Schedule 1 line 5. period: 2025 absolute_error_margin: 0.01 From e64408d42914bdc236b6697cda72c4f8afcbdfa8 Mon Sep 17 00:00:00 2001 From: David Trimmer Date: Thu, 19 Nov 2026 20:32:16 -0500 Subject: [PATCH 3/5] Count only the head's and spouse's SSI in Maine fairness credit income The income list summed ssi over every tax unit member, so a dependent's SSI counted in the family's income, and a dependent's pension, by lowering that SSI, could raise the credit. Rule 813 bases the credits on the claimant's individual income or a married couple's joint income, so the list now holds me_fairness_credit_ssi, the head's and spouse's SSI. Co-Authored-By: Claude Opus 5.5 --- .../me-fairness-credit-income.fixed.md | 2 +- .../credits/fairness/income_sources.yaml | 7 ++- ...d_property_tax_fairness_credit_income.yaml | 53 +++++++++++++++++++ .../fairness/me_fairness_credit_ssi.py | 31 +++++++++++ 4 files changed, 90 insertions(+), 3 deletions(-) create mode 100644 policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_ssi.py diff --git a/changelog.d/me-fairness-credit-income.fixed.md b/changelog.d/me-fairness-credit-income.fixed.md index 3362ed1428c..7d95ca29f33 100644 --- a/changelog.d/me-fairness-credit-income.fixed.md +++ b/changelog.d/me-fairness-credit-income.fixed.md @@ -1 +1 @@ -Maine sales and property tax fairness credit income now counts SSI and nets a loss against income on the same federal line, so only a line's net loss is added back (Schedule PTFC/STFC line 2d). +Maine sales and property tax fairness credit income now counts the head's and spouse's SSI and nets a loss against income on the same federal line, so only a line's net loss is added back (Schedule PTFC/STFC line 2d). diff --git a/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/income_sources.yaml b/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/income_sources.yaml index 7cc1dde8c9f..d48f6d759f6 100644 --- a/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/income_sources.yaml +++ b/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/income_sources.yaml @@ -7,8 +7,9 @@ values: - tax_exempt_social_security - tax_exempt_interest_income # "Payments received under the federal Social Security Act" include - # supplemental security income (Schedule PTFC/STFC lines 1a and 2b). - - ssi + # supplemental security income (Schedule PTFC/STFC lines 1a and 2b): the + # head's and spouse's. + - me_fairness_credit_ssi metadata: unit: list label: Maine sales and property tax credit income sources @@ -21,3 +22,5 @@ metadata: href: https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/21_1040me_sched_pstfc_dwnldff.pdf#page=1 - title: "2025 Form 1040ME Schedule PTFC/STFC, lines 1a-3 and instructions #page 1,3-4" href: https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/25_1040me_sch_ptfc_fillable.pdf#page=1 + - title: "Maine Revenue Services Rule 813, Property Tax Fairness Credit, .01(B)-(C) and .03 #page 1,4" + href: https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/Rule_813_May_2023.pdf#page=1 diff --git a/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_sales_and_property_tax_fairness_credit_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_sales_and_property_tax_fairness_credit_income.yaml index 84c059d92cd..e842587f64b 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_sales_and_property_tax_fairness_credit_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_sales_and_property_tax_fairness_credit_income.yaml @@ -113,3 +113,56 @@ # Schedule 1 line 5: 5,000 - 4,999 = 1. 25,450 + 1 = 25,451: 145. me_sales_and_property_tax_fairness_credit_income: 25_451 me_sales_tax_fairness_credit: 145 + +- name: A dependent child's SSI is the child's own, not the parent's income. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + parent: + age: 40 + employment_income: 20_000 + ssi: 0 + child: + age: 10 + ssi: 6_000 + tax_units: + tax_unit: + members: [parent, child] + filing_status: HEAD_OF_HOUSEHOLD + households: + household: + members: [parent, child] + state_code: ME + output: + # Rule 813 .01(B) and .03: the claimant's individual income. The parent's + # 20,000 of wages, not 20,000 + 6,000 = 26,000. + me_fairness_credit_ssi: 0 + me_sales_and_property_tax_fairness_credit_income: 20_000 + +- name: A joint return counts the spouse's SSI. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 70 + social_security_retirement: 10_000 + ssi: 0 + spouse: + age: 68 + ssi: 3_000 + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + households: + household: + members: [head, spouse] + state_code: ME + output: + # Rule 813 .01(C): the couple's joint income. None of the head's 10,000 + # of Social Security is taxable (combined income 5,000, under the 32,000 + # joint base amount). 10,000 + the spouse's 3,000 SSI = 13,000. + me_fairness_credit_ssi: 3_000 + me_sales_and_property_tax_fairness_credit_income: 13_000 diff --git a/policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_ssi.py b/policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_ssi.py new file mode 100644 index 00000000000..0407860bbf8 --- /dev/null +++ b/policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_ssi.py @@ -0,0 +1,31 @@ +from policyengine_us.model_api import * + + +class me_fairness_credit_ssi(Variable): + value_type = float + entity = TaxUnit + unit = USD + label = "Maine fairness credit SSI of the head and spouse" + documentation = ( + "Supplemental security income the head and spouse receive, a payment " + "under the federal Social Security Act (Schedule PTFC/STFC lines 1a " + "and 2b). The credits use the claimant's individual income, or a " + "married couple's joint income, so a tax unit dependent's SSI is the " + "dependent's own." + ) + definition_period = YEAR + reference = ( + "https://legislature.maine.gov/statutes/36/title36sec5213-A.html", # 1. B. (3) + "https://legislature.maine.gov/statutes/36/title36sec5219-KK.html", # 1. D. (3) + # PDF pages 1, 4: .01(B) and (C), "individual income" and "joint + # income", and .03, "the taxpayer's federal adjusted gross income". + "https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/Rule_813_May_2023.pdf#page=1", + # Line 1a instructions, which line 2b points to. + "https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/25_1040me_sch_ptfc_fillable.pdf#page=3", + ) + defined_for = StateCode.ME + + def formula(tax_unit, period, parameters): + person = tax_unit.members + filer = ~person("is_tax_unit_dependent", period) + return tax_unit.sum(filer * add(person, period, ["ssi"])) From 727a85879aef186b75d69874baec7ba80d5d4869 Mon Sep 17 00:00:00 2001 From: David Trimmer <178813244+DTrim99@users.noreply.github.com> Date: Fri, 20 Nov 2026 16:46:48 -0500 Subject: [PATCH 4/5] Fix issues from review: net only Schedule 1 line 5 in Maine fairness credit income, per 36 M.R.S. 5219-KK Federal income for the Maine sales and property tax fairness credit is now irs_gross_income minus the netted Schedule 1 line 5 losses. Other federal lines keep losses floored per source, as 36 M.R.S. 5213-A(1)(B)(1) and 5219-KK(1)(D)(1) provide. Removes the unused line 3, line 6 and Form 1040 line 7 parameters, updates the affected test expectations, adds the reviewer examples, and records the statute vs. form line 2d conflict in source_conflicts/candidates.yaml. Co-Authored-By: Claude Opus 5.5 --- .../me-fairness-credit-income.fixed.md | 2 +- .../federal_lines/form_1040_line_7.yaml | 22 -------- .../federal_lines/schedule_1_line_3.yaml | 21 -------- .../federal_lines/schedule_1_line_6.yaml | 20 ------- .../credits/fairness/income_sources.yaml | 4 +- .../me_fairness_credit_federal_income.yaml | 41 +++++++------- ...d_property_tax_fairness_credit_income.yaml | 44 +++++++++++++-- .../me_fairness_credit_federal_income.py | 53 ++++++++----------- source_conflicts/candidates.yaml | 51 ++++++++++++++++++ 9 files changed, 136 insertions(+), 122 deletions(-) delete mode 100644 policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/form_1040_line_7.yaml delete mode 100644 policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/schedule_1_line_3.yaml delete mode 100644 policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/schedule_1_line_6.yaml diff --git a/changelog.d/me-fairness-credit-income.fixed.md b/changelog.d/me-fairness-credit-income.fixed.md index 7d95ca29f33..e9cd8cd6484 100644 --- a/changelog.d/me-fairness-credit-income.fixed.md +++ b/changelog.d/me-fairness-credit-income.fixed.md @@ -1 +1 @@ -Maine sales and property tax fairness credit income now counts the head's and spouse's SSI and nets a loss against income on the same federal line, so only a line's net loss is added back (Schedule PTFC/STFC line 2d). +Maine sales and property tax fairness credit income now counts the head's and spouse's SSI and adds back only the net loss from combining the Schedule E items on Schedule 1 line 5, as 36 M.R.S. 5213-A and 5219-KK provide. diff --git a/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/form_1040_line_7.yaml b/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/form_1040_line_7.yaml deleted file mode 100644 index f62e71a432b..00000000000 --- a/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/form_1040_line_7.yaml +++ /dev/null @@ -1,22 +0,0 @@ -description: Maine combines these income sources, which share federal Form 1040 line 7, and adds back only their net loss under the sales and property tax fairness credits. -values: - 2021-01-01: - # Net capital gain or loss and capital gain distributions, which net - # against capital losses on Schedule D line 13. - - capital_gains - - non_sch_d_capital_gains -metadata: - unit: list - period: year - label: Maine fairness credit Form 1040 line 7 sources - reference: - - title: §5213-A. Sales tax fairness credit (1) (B) (1) - href: https://legislature.maine.gov/statutes/36/title36sec5213-A.html - - title: §5219-KK. Property tax fairness credit for tax (1) (D) (1) - href: https://legislature.maine.gov/statutes/36/title36sec5219-KK.html - - title: "2021 Form 1040ME Schedule PTFC/STFC, line 2d and instructions #page 1,4" - href: https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/21_1040me_sched_pstfc_dwnldff.pdf#page=1 - - title: "2025 Form 1040ME Schedule PTFC/STFC, line 2d and instructions #page 1,4" - href: https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/25_1040me_sch_ptfc_fillable.pdf#page=1 - - title: 2025 Form 1040, line 7a - Capital gain or (loss) - href: https://www.irs.gov/pub/irs-prior/f1040--2025.pdf#page=1 diff --git a/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/schedule_1_line_3.yaml b/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/schedule_1_line_3.yaml deleted file mode 100644 index 89ccf01d25e..00000000000 --- a/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/schedule_1_line_3.yaml +++ /dev/null @@ -1,21 +0,0 @@ -description: Maine combines these income sources, which share federal Schedule 1 line 3, and adds back only their net loss under the sales and property tax fairness credits. -values: - 2021-01-01: - # Schedule C profit or loss, both kinds of business. - - self_employment_income - - sstb_self_employment_income -metadata: - unit: list - period: year - label: Maine fairness credit Schedule 1 line 3 sources - reference: - - title: §5213-A. Sales tax fairness credit (1) (B) (1) - href: https://legislature.maine.gov/statutes/36/title36sec5213-A.html - - title: §5219-KK. Property tax fairness credit for tax (1) (D) (1) - href: https://legislature.maine.gov/statutes/36/title36sec5219-KK.html - - title: "2021 Form 1040ME Schedule PTFC/STFC, line 2d and instructions #page 1,4" - href: https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/21_1040me_sched_pstfc_dwnldff.pdf#page=1 - - title: "2025 Form 1040ME Schedule PTFC/STFC, line 2d and instructions #page 1,4" - href: https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/25_1040me_sch_ptfc_fillable.pdf#page=1 - - title: 2025 Schedule 1 (Form 1040), line 3 - Business income or (loss) - href: https://www.irs.gov/pub/irs-prior/f1040s1--2025.pdf#page=1 diff --git a/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/schedule_1_line_6.yaml b/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/schedule_1_line_6.yaml deleted file mode 100644 index 5ce69d5966f..00000000000 --- a/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/schedule_1_line_6.yaml +++ /dev/null @@ -1,20 +0,0 @@ -description: Maine combines these income sources, which share federal Schedule 1 line 6, and adds back only their net loss under the sales and property tax fairness credits. -values: - 2021-01-01: - # Schedule F farm profit or loss. - - farm_operations_income -metadata: - unit: list - period: year - label: Maine fairness credit Schedule 1 line 6 sources - reference: - - title: §5213-A. Sales tax fairness credit (1) (B) (1) - href: https://legislature.maine.gov/statutes/36/title36sec5213-A.html - - title: §5219-KK. Property tax fairness credit for tax (1) (D) (1) - href: https://legislature.maine.gov/statutes/36/title36sec5219-KK.html - - title: "2021 Form 1040ME Schedule PTFC/STFC, line 2d and instructions #page 1,4" - href: https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/21_1040me_sched_pstfc_dwnldff.pdf#page=1 - - title: "2025 Form 1040ME Schedule PTFC/STFC, line 2d and instructions #page 1,4" - href: https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/25_1040me_sch_ptfc_fillable.pdf#page=1 - - title: 2025 Schedule 1 (Form 1040), line 6 - Farm income or (loss) - href: https://www.irs.gov/pub/irs-prior/f1040s1--2025.pdf#page=1 diff --git a/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/income_sources.yaml b/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/income_sources.yaml index d48f6d759f6..3f9307e7034 100644 --- a/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/income_sources.yaml +++ b/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/income_sources.yaml @@ -1,8 +1,8 @@ description: Maine accounts for the following income sources for the sales and property tax credits. values: 2021-01-01: - # Federal total income (Schedule PTFC/STFC line 2a) with each federal - # line's net loss added back (line 2d). + # Federal gross income: trade or business, capital and farm losses are + # added back in full, and the Schedule E items only for their net loss. - me_fairness_credit_federal_income - tax_exempt_social_security - tax_exempt_interest_income diff --git a/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.yaml index 67431a04556..b412ebb6df8 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.yaml @@ -1,8 +1,7 @@ -# Schedule PTFC/STFC line 2a (federal total income, Form 1040 line 9) plus -# line 2d, which adds back "any negative amount (net loss)" on Form 1040 line 7 -# and Schedule 1 lines 3, 4, 5, 6 and 8a through 8z. 36 M.R.S. -# 5213-A(1)(B)(1) and 5219-KK(1)(D)(1) add back "any net loss resulting from -# combining" the Schedule E items that make up Schedule 1 line 5. +# 36 M.R.S. 5213-A(1)(B)(1) and 5219-KK(1)(D)(1) add back "Trade or business +# losses; capital losses; ... and farm losses included in federal adjusted +# gross income" in full, and only "any net loss resulting from combining" the +# Schedule E items that make up Schedule 1 line 5. - name: A Schedule 1 line 5 net loss is added back only to zero. period: 2025 @@ -58,7 +57,7 @@ # 25,000. me_fairness_credit_federal_income: 25_000 -- name: Two kinds of Schedule C business net on Schedule 1 line 3. +- name: An SSTB loss is added back in full, not netted against other Schedule C income. period: 2025 absolute_error_margin: 0.01 input: @@ -66,10 +65,10 @@ self_employment_income: 10_000 sstb_self_employment_income: -3_000 output: - # Line 3: 10,000 - 3,000 = 7,000, not a net loss. - me_fairness_credit_federal_income: 7_000 + # Business losses are added back in full: 10,000, not line 3's net 7,000. + me_fairness_credit_federal_income: 10_000 -- name: A spouse's Schedule C loss offsets the other spouse's Schedule C profit on a joint return. +- name: A spouse's Schedule C loss is added back in full on a joint return. period: 2025 absolute_error_margin: 0.01 input: @@ -90,10 +89,10 @@ members: [head, spouse] state_code: ME output: - # Line 3: 10,000 - 4,000 = 6,000. 20,000 wages + 6,000 = 26,000. - me_fairness_credit_federal_income: 26_000 + # Business losses are added back in full: 20,000 + 10,000 = 30,000, not 26,000. + me_fairness_credit_federal_income: 30_000 -- name: A spouse's farm loss offsets the other spouse's farm profit on a joint return. +- name: A spouse's farm loss is added back in full on a joint return. period: 2025 absolute_error_margin: 0.01 input: @@ -113,10 +112,10 @@ members: [head, spouse] state_code: ME output: - # Schedule 1 line 6: 8,000 - 3,000 = 5,000. - me_fairness_credit_federal_income: 5_000 + # Farm losses are added back in full: 8,000, not line 6's net 5,000. + me_fairness_credit_federal_income: 8_000 -- name: A spouse's capital loss offsets the other spouse's capital gain on a joint return. +- name: A spouse's capital loss is added back in full on a joint return. period: 2025 absolute_error_margin: 0.01 input: @@ -137,10 +136,10 @@ members: [head, spouse] state_code: ME output: - # Form 1040 line 7: 10,000 - 4,000 = 6,000. 20,000 + 6,000 = 26,000. - me_fairness_credit_federal_income: 26_000 + # Capital losses are added back in full: 20,000 + 10,000 = 30,000, not 26,000. + me_fairness_credit_federal_income: 30_000 -- name: Capital gain distributions net against a capital loss, and the net loss is added back. +- name: A capital loss is added back in full, including the part that offsets capital gain distributions. period: 2025 absolute_error_margin: 0.01 input: @@ -149,10 +148,8 @@ non_sch_d_capital_gains: 2_000 long_term_capital_gains: -5_000 output: - # Schedule D line 13 takes the 2,000 of distributions: 2,000 - 5,000 = - # -3,000, the most a single filer deducts, on Form 1040 line 7. Line 2a: - # 20,000 - 3,000 = 17,000. Line 2d: 3,000. 17,000 + 3,000 = 20,000. - me_fairness_credit_federal_income: 20_000 + # Capital losses are added back in full: 20,000 + 2,000 = 22,000, not 20,000. + me_fairness_credit_federal_income: 22_000 - name: A dependent's rental loss is on the dependent's own return. period: 2025 diff --git a/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_sales_and_property_tax_fairness_credit_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_sales_and_property_tax_fairness_credit_income.yaml index e842587f64b..e3059bcb2ec 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_sales_and_property_tax_fairness_credit_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_sales_and_property_tax_fairness_credit_income.yaml @@ -1,9 +1,8 @@ # 36 M.R.S. 5213-A(1)(B) and 5219-KK(1)(D): income is federal adjusted gross # income increased by listed losses, interest and "Payments received under the # federal Social Security Act ... to the extent not included in federal -# adjusted gross income". Schedule PTFC/STFC line 3 adds federal total income -# (line 2a), Social Security Act payments and interest left out of it (lines -# 2b and 2c) and each federal line's net loss (line 2d). +# adjusted gross income". Trade or business, capital and farm losses are added +# back in full, and the Schedule E items only for their net loss. - name: SSI is a payment received under the federal Social Security Act. period: 2025 @@ -166,3 +165,42 @@ # joint base amount). 10,000 + the spouse's 3,000 SSI = 13,000. me_fairness_credit_ssi: 3_000 me_sales_and_property_tax_fairness_credit_income: 13_000 + +- name: A $3,000 SSTB loss does not offset $10,000 of other Schedule C income. + period: 2025 + absolute_error_margin: 0.01 + input: + age: 45 + state_code: ME + self_employment_income: 10_000 + sstb_self_employment_income: -3_000 + output: + # 5219-KK(1)(D)(1) adds back trade or business losses in full: Schedule 1 + # line 3 of 10,000 - 3,000 = 7,000, plus the 3,000 loss = 10,000. + me_fairness_credit_federal_income: 10_000 + me_sales_and_property_tax_fairness_credit_income: 10_000 + +- name: One spouse's $4,000 capital loss does not offset the other spouse's $10,000 capital gain. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 45 + long_term_capital_gains: 10_000 + spouse: + age: 45 + short_term_capital_gains: -4_000 + tax_units: + tax_unit: + members: [head, spouse] + filing_status: JOINT + households: + household: + members: [head, spouse] + state_code: ME + output: + # 5219-KK(1)(D)(1) adds back capital losses in full: Form 1040 line 7 of + # 10,000 - 4,000 = 6,000, plus the 4,000 loss = 10,000. + me_fairness_credit_federal_income: 10_000 + me_sales_and_property_tax_fairness_credit_income: 10_000 diff --git a/policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.py b/policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.py index 8d41ea457ee..a04d2228f41 100644 --- a/policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.py +++ b/policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.py @@ -5,52 +5,43 @@ class me_fairness_credit_federal_income(Variable): value_type = float entity = TaxUnit unit = USD - label = "Maine fairness credit federal income with net losses added back" + label = "Maine fairness credit federal income with losses added back" documentation = ( - "Federal total income with any net loss on a federal income line " - "added back, Schedule PTFC/STFC line 2a plus line 2d. A loss first " - "offsets other income on its own line (Form 1040 line 7, Schedule 1 " - "lines 3, 5 and 6), so only the line's net loss is added back." + "Federal gross income with losses added back. Trade or business, " + "capital and farm losses are added back in full. The Schedule E items " + "that make up Schedule 1 line 5 are combined first, so only their net " + "loss is added back." ) definition_period = YEAR reference = ( "https://legislature.maine.gov/statutes/36/title36sec5213-A.html", # 1. B. (1) "https://legislature.maine.gov/statutes/36/title36sec5219-KK.html", # 1. D. (1) - # PDF pages 1, 4: lines 2a and 2d, and the line 2d instructions + # PDF pages 1, 4: line 2d and its instructions, which add back a net + # loss on Schedule 1 line 5 "https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/25_1040me_sch_ptfc_fillable.pdf#page=1", ) defined_for = StateCode.ME def formula(tax_unit, period, parameters): - lines = parameters( - period - ).gov.states.me.tax.income.credits.fairness.federal_lines + p = parameters(period).gov.states.me.tax.income.credits.fairness gross_income_sources = parameters(period).gov.irs.gross_income.sources person = tax_unit.members # A tax unit dependent's items are on the dependent's own return, as # in irs_gross_income. not_dependent = ~person("is_tax_unit_dependent", period) # irs_gross_income adds each filer's income from each source and - # leaves out its losses: federal total income with every loss added - # back. + # leaves out its losses, so trade or business, capital and farm losses + # are added back in full. income = add(tax_unit, period, ["irs_gross_income"]) - # Line 2d adds back only a line's net loss, so a loss first offsets - # the income on the same line, the head's and the spouse's together. - # Schedule 1 line 4 (other_net_gain) is already a tax unit amount, and - # the model has no losses on the other lines. - for line in [ - lines.schedule_1_line_3, - lines.schedule_1_line_5, - lines.schedule_1_line_6, - lines.form_1040_line_7, - ]: - line_income = 0 - line_losses = 0 - for source in line: - # Only the sources federal gross income counts. - if source in gross_income_sources: - amount = not_dependent * add(person, period, [source]) - line_income += tax_unit.sum(max_(0, amount)) - line_losses += tax_unit.sum(max_(0, -amount)) - income = income - min_(line_income, line_losses) - return income + # Only "any net loss resulting from combining" the Schedule E items is + # added back, so their losses first offset their income, the head's + # and the spouse's together. + schedule_e_income = 0 + schedule_e_losses = 0 + for source in p.federal_lines.schedule_1_line_5: + # Only the sources federal gross income counts. + if source in gross_income_sources: + amount = not_dependent * add(person, period, [source]) + schedule_e_income = schedule_e_income + tax_unit.sum(max_(0, amount)) + schedule_e_losses = schedule_e_losses + tax_unit.sum(max_(0, -amount)) + return income - min_(schedule_e_income, schedule_e_losses) diff --git a/source_conflicts/candidates.yaml b/source_conflicts/candidates.yaml index b8ec15773c6..36a810fffb1 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -6566,6 +6566,57 @@ candidates: invariant test's statutory oracle (test_me_childless_eitc_age_gate.py). Captures of the worksheet and the instructions page are in source_conflicts/sources/us-me/. Worksheets for 2020 to 2023 are unchecked, so the conflict may start earlier. +- id: us-me:fairness-credit-loss-add-backs + program: income-tax + years: + from: 2021 + to: 2025 + type: tax + question: Does Maine's fairness credit income add back trade or business, capital and farm losses in full, or only + the net loss on each federal line, as Schedule PTFC/STFC line 2d does? + sources: + - kind: statute + citation: 36 M.R.S. 5213-A(1)(B)(1) ("Trade or business losses; capital losses; any net loss resulting from + combining the income or loss from rental real estate and royalties, the income or loss from partnerships and + S corporations, the income or loss from estates and trusts, the income or loss from real estate mortgage + investment conduits and the net farm rental income or loss; any loss associated with the sale of business + property; and farm losses included in federal adjusted gross income") + url: https://legislature.maine.gov/statutes/36/title36sec5213-A.html + - kind: statute + citation: 36 M.R.S. 5219-KK(1)(D)(1) (the same words, for the property tax fairness credit) + url: https://legislature.maine.gov/statutes/36/title36sec5219-KK.html + - kind: instructions + citation: 2021 Form 1040ME Schedule PTFC/STFC instructions, line 2d ("Enter on line 2d the amount of any negative + amount (net loss) shown on federal Form 1040 or Form 1040-SR, line 7 and federal Schedule 1, lines 3, 4, 5, 6, + and 8") + url: https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/21_1040me_sched_pstfc_dwnldff.pdf#page=4 + - kind: instructions + citation: 2025 Form 1040ME Schedule PTFC/STFC instructions, line 2d ("Enter on line 2d the amount of any negative + amount (net loss) included on federal Form 1040 or Form 1040-SR, line 7 and federal Schedule 1, lines 3, 4, 5, + 6, and 8a through 8z") + url: https://www.maine.gov/revenue/sites/maine.gov.revenue/files/inline-files/25_1040me_sch_ptfc_fillable.pdf#page=4 + readings: + statute: Trade or business losses, capital losses, losses on the sale of business property and farm losses included + in federal adjusted gross income are added back in full. Only the Schedule E items (Schedule 1 line 5) are + combined first, so only their net loss is added back. + other: Line 2d adds back only a net loss on Form 1040 line 7 or Schedule 1 lines 3, 4, 5, 6 and 8, so every loss + first offsets income on its own line, the other spouse's included on a joint return. + example: In 2025, $10,000 of Schedule C income and a $3,000 Schedule C loss from a specified service trade or business + give fairness credit income of $10,000 under the statute and $7,000 under line 2d. On a joint return, one spouse's + $10,000 capital gain and the other's $4,000 capital loss give $10,000 and $6,000. + pe_us: + follows: statute + code: + - policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.py + - policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/schedule_1_line_5.yaml + prs: + - https://github.com/PolicyEngine/policyengine-us/pull/11185 + state: ruled + note: Statute first. irs_gross_income counts each filer's income from each source and leaves out its losses, so + Schedule C, Schedule F and capital losses are added back in full, and me_fairness_credit_federal_income nets only + the Schedule 1 line 5 sources, the head's and the spouse's together. YAML cases in + me_fairness_credit_federal_income.yaml and me_sales_and_property_tax_fairness_credit_income.yaml pin the statute + reading. The 2021, 2022, 2023 and 2025 instructions have the line 2d text; the 2024 instructions are unchecked. - id: us-me:liheap-size-ten-income-limit program: liheap years: From e83633eaf7906595e58fc6d38adb66a74e62898e Mon Sep 17 00:00:00 2001 From: David Trimmer <178813244+DTrim99@users.noreply.github.com> Date: Mon, 23 Nov 2026 09:37:37 -0500 Subject: [PATCH 5/5] Fix issues from review: add back capital losses netted inside one filer's gains in Maine fairness credit income Add me_fairness_credit_netted_capital_loss, which adds back the capital losses that one filer's short-term/long-term netting absorbs (including Schedule D line 13 distributions and the line 14 long-term carryover), for the head and the spouse, so every capital loss in federal AGI comes back once. Extend the YAML cases, the source-conflict entry, and the changelog fragment. Co-Authored-By: Claude Opus 5.5 --- .../me-fairness-credit-income.fixed.md | 2 +- .../me_fairness_credit_federal_income.yaml | 89 +++++++++++++++++++ .../me_fairness_credit_federal_income.py | 23 +++-- .../me_fairness_credit_netted_capital_loss.py | 61 +++++++++++++ source_conflicts/candidates.yaml | 21 +++-- 5 files changed, 183 insertions(+), 13 deletions(-) create mode 100644 policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_netted_capital_loss.py diff --git a/changelog.d/me-fairness-credit-income.fixed.md b/changelog.d/me-fairness-credit-income.fixed.md index e9cd8cd6484..12ae375da4c 100644 --- a/changelog.d/me-fairness-credit-income.fixed.md +++ b/changelog.d/me-fairness-credit-income.fixed.md @@ -1 +1 @@ -Maine sales and property tax fairness credit income now counts the head's and spouse's SSI and adds back only the net loss from combining the Schedule E items on Schedule 1 line 5, as 36 M.R.S. 5213-A and 5219-KK provide. +Maine sales and property tax fairness credit income now counts the head's and spouse's SSI and adds back only the net loss from combining the Schedule E items on Schedule 1 line 5, as 36 M.R.S. 5213-A and 5219-KK provide. A capital loss absorbed by the same filer's other-term gains is now added back too, so every capital loss in federal adjusted gross income comes back once. diff --git a/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.yaml index b412ebb6df8..106607dbda2 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.yaml @@ -174,3 +174,92 @@ # The parent's Schedule 1 line 5 holds only the 10,000 of partnership # income. me_fairness_credit_federal_income: 10_000 + +- name: One filer's short-term capital loss is added back in full, not netted against the same filer's long-term gain. + period: 2025 + absolute_error_margin: 0.01 + input: + state_code: ME + employment_income: 20_000 + long_term_capital_gains: 10_000 + short_term_capital_gains: -4_000 + output: + # Form 1040 line 7: 10,000 - 4,000 = 6,000, so AGI is 26,000. Capital + # losses are added back in full: 26,000 + 4,000 = 30,000, as when the + # same items are split between spouses on a joint return. + me_fairness_credit_netted_capital_loss: 4_000 + me_fairness_credit_federal_income: 30_000 + +- name: A capital loss netted against the same filer's capital gain distributions on Schedule D line 13 is added back in full. + period: 2025 + absolute_error_margin: 0.01 + input: + state_code: ME + employment_income: 20_000 + long_term_capital_gains: -3_000 + schedule_d_capital_gain_distributions: 2_000 + output: + # Long-term gains of -3,000 net 2,000 of line 13 distributions with a + # 5,000 loss from sales. AGI: 20,000 - 3,000 net loss = 17,000. The whole + # 5,000 loss is added back: 17,000 + 5,000 = 22,000, as with + # distributions reported without Schedule D. + me_fairness_credit_netted_capital_loss: 2_000 + me_fairness_credit_federal_income: 22_000 + +- name: A prior-year capital loss carryover absorbed by the same filer's long-term gain is added back. + period: 2025 + absolute_error_margin: 0.01 + input: + state_code: ME + employment_income: 20_000 + long_term_capital_gains: 5_000 + long_term_capital_loss_carryover: 3_000 + output: + # Schedule D line 15: the year's 8,000 long-term gain less the 3,000 + # carryover on line 14 = 5,000, so AGI is 25,000. 26 U.S.C. 1212(b)(1)(B) + # makes the carryover a long-term capital loss of the year, included in + # AGI: 25,000 + 3,000 = 28,000. + me_fairness_credit_netted_capital_loss: 3_000 + me_fairness_credit_federal_income: 28_000 + +- name: A carryover is added back when the net capital gain is supplied without its parts. + period: 2025 + absolute_error_margin: 0.01 + input: + state_code: ME + employment_income: 20_000 + capital_gains: -1_000 + long_term_capital_loss_carryover: 3_000 + output: + # The -1,000 net includes the 3,000 carryover, so the year's own gain is + # 2,000. AGI deducts the 1,000 net loss: 19,000. AGI deducted all 3,000 + # of the carryover, 2,000 against the year's gain and 1,000 as the net + # loss: 19,000 + 3,000 = 22,000. + me_fairness_credit_netted_capital_loss: 2_000 + me_fairness_credit_federal_income: 22_000 + +- name: A dependent's capital loss netted against the dependent's own gain is not added back. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + head: + age: 45 + employment_income: 20_000 + child: + age: 10 + short_term_capital_gains: -4_000 + long_term_capital_gains: 2_000 + tax_units: + tax_unit: + members: [head, child] + filing_status: HEAD_OF_HOUSEHOLD + households: + household: + members: [head, child] + state_code: ME + output: + # The child's capital gains and losses are on the child's own return, so + # the parent's income is the 20,000 of wages. + me_fairness_credit_netted_capital_loss: 0 + me_fairness_credit_federal_income: 20_000 diff --git a/policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.py b/policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.py index a04d2228f41..c49951a9632 100644 --- a/policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.py +++ b/policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.py @@ -8,9 +8,13 @@ class me_fairness_credit_federal_income(Variable): label = "Maine fairness credit federal income with losses added back" documentation = ( "Federal gross income with losses added back. Trade or business, " - "capital and farm losses are added back in full. The Schedule E items " - "that make up Schedule 1 line 5 are combined first, so only their net " - "loss is added back." + "capital and farm losses included in adjusted gross income are added " + "back in full, each filer's and each kind separately, including a " + "capital loss that offset the same filer's gains. A loss netted " + "inside one input, such as two sales in one filer's short-term " + "capital gains, cannot be separated. The Schedule E items that make " + "up Schedule 1 line 5 are combined first, so only their net loss is " + "added back." ) definition_period = YEAR reference = ( @@ -30,9 +34,16 @@ def formula(tax_unit, period, parameters): # in irs_gross_income. not_dependent = ~person("is_tax_unit_dependent", period) # irs_gross_income adds each filer's income from each source and - # leaves out its losses, so trade or business, capital and farm losses - # are added back in full. - income = add(tax_unit, period, ["irs_gross_income"]) + # leaves out its losses, so trade or business and farm losses, and + # each filer's net capital loss as far as adjusted gross income + # deducts it, are added back in full. capital_gains first nets each + # filer's short-term and long-term results, so the losses that + # netting absorbs are added back separately. + income = add( + tax_unit, + period, + ["irs_gross_income", "me_fairness_credit_netted_capital_loss"], + ) # Only "any net loss resulting from combining" the Schedule E items is # added back, so their losses first offset their income, the head's # and the spouse's together. diff --git a/policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_netted_capital_loss.py b/policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_netted_capital_loss.py new file mode 100644 index 00000000000..5bf63435afc --- /dev/null +++ b/policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_netted_capital_loss.py @@ -0,0 +1,61 @@ +from policyengine_us.model_api import * + + +class me_fairness_credit_netted_capital_loss(Variable): + value_type = float + entity = TaxUnit + label = "Maine fairness credit capital losses netted against a filer's own gains" + unit = USD + documentation = ( + "The capital losses of the head and spouse that offset the same " + "person's gains inside capital_gains, which 36 M.R.S. 5213-A(1)(B)(1) " + "and 5219-KK(1)(D)(1) add back to federal adjusted gross income for " + "the fairness credits: a short-term or long-term loss that offset the " + "gain in the other holding period or capital gain distributions on " + "Schedule D line 13, and the prior-year long-term capital loss " + "carryover to the extent the same person's gains absorbed it. " + "irs_gross_income leaves out each filer's net capital loss, so the " + "fairness credit income already adds back the capital losses " + "adjusted gross income deducts from it." + ) + definition_period = YEAR + reference = ( + "https://legislature.maine.gov/statutes/36/title36sec5213-A.html", # 1. B. (1) + "https://legislature.maine.gov/statutes/36/title36sec5219-KK.html", # 1. D. (1) + "https://www.law.cornell.edu/uscode/text/26/1212#b_1_B", + "https://www.irs.gov/pub/irs-prior/f1040sd--2025.pdf#page=1", # lines 7, 13-15 + ) + defined_for = StateCode.ME + + def formula(tax_unit, period, parameters): + person = tax_unit.members + # capital_gains nets each person's short-term and long-term gains + # (Schedule D lines 7 and 15) before irs_gross_income floors the + # total at zero, so a loss that offsets the same person's gain in the + # other part reduces irs_gross_income itself, unlike the losses it + # leaves out. Long-term gains also net two items Schedule D lists on + # their own lines: capital gain distributions (line 13) and the + # prior-year long-term capital loss carryover (line 14), which + # 26 U.S.C. 1212(b)(1)(B) treats as a long-term capital loss of the + # year. + short_term = person("short_term_capital_gains", period) + long_term = person("long_term_capital_gains", period) + # Without the parts, capital_gains is a net amount supplied directly; + # it is taken as the long-term total the two items net into. + parts_supplied = (short_term != 0) | (long_term != 0) + long_term = where(parts_supplied, long_term, person("capital_gains", period)) + distributions = max_(0, person("schedule_d_capital_gain_distributions", period)) + carryover = max_(0, person("long_term_capital_loss_carryover", period)) + # The long-term gain or loss from sales and exchanges (lines 8 to 12). + long_term_sales = long_term - distributions + carryover + gains = max_(0, short_term) + max_(0, long_term_sales) + distributions + losses = max_(0, -short_term) + max_(0, -long_term_sales) + carryover + netted = min_(gains, losses) + # A tax unit dependent's items are on the dependent's own return, as + # in irs_gross_income. + not_dependent = ~person("is_tax_unit_dependent", period) + # No capital loss is in adjusted gross income when a reform takes + # capital gains out of gross income. + sources = parameters(period).gov.irs.gross_income.sources + capital_gains_counted = "capital_gains" in sources + return capital_gains_counted * tax_unit.sum(not_dependent * netted) diff --git a/source_conflicts/candidates.yaml b/source_conflicts/candidates.yaml index 36a810fffb1..f918ba4b9a4 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -6602,21 +6602,30 @@ candidates: other: Line 2d adds back only a net loss on Form 1040 line 7 or Schedule 1 lines 3, 4, 5, 6 and 8, so every loss first offsets income on its own line, the other spouse's included on a joint return. example: In 2025, $10,000 of Schedule C income and a $3,000 Schedule C loss from a specified service trade or business - give fairness credit income of $10,000 under the statute and $7,000 under line 2d. On a joint return, one spouse's - $10,000 capital gain and the other's $4,000 capital loss give $10,000 and $6,000. + give fairness credit income of $10,000 under the statute and $7,000 under line 2d. A $10,000 long-term capital gain + and a $4,000 short-term capital loss give $10,000 and $6,000, whether one filer has both or they are split between + spouses on a joint return. pe_us: follows: statute code: - policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.py + - policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_netted_capital_loss.py - policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/federal_lines/schedule_1_line_5.yaml prs: - https://github.com/PolicyEngine/policyengine-us/pull/11185 state: ruled note: Statute first. irs_gross_income counts each filer's income from each source and leaves out its losses, so - Schedule C, Schedule F and capital losses are added back in full, and me_fairness_credit_federal_income nets only - the Schedule 1 line 5 sources, the head's and the spouse's together. YAML cases in - me_fairness_credit_federal_income.yaml and me_sales_and_property_tax_fairness_credit_income.yaml pin the statute - reading. The 2021, 2022, 2023 and 2025 instructions have the line 2d text; the 2024 instructions are unchecked. + Schedule C and Schedule F losses, and each filer's net capital loss as far as AGI deducts it, are added back in + full. capital_gains first nets a filer's short-term and long-term results, with capital gain distributions on + Schedule D line 13 and the prior-year long-term carryover on line 14, which 26 U.S.C. 1212(b)(1)(B) treats as a + long-term capital loss of the year; me_fairness_credit_netted_capital_loss adds back the losses that netting + absorbs, the head's and the spouse's, so every capital loss included in AGI is added back once. A loss carried to + a later year is not in AGI and is not added back. me_fairness_credit_federal_income nets only the Schedule 1 line 5 + sources, the head's and the spouse's together. A loss inside one input, such as two sales in the same holding + period netted in one filer's short-term or long-term capital gains, or two businesses netted in one filer's + self_employment_income, cannot be separated; neither can a short-term carryover, which has no input of its own. + YAML cases in me_fairness_credit_federal_income.yaml and me_sales_and_property_tax_fairness_credit_income.yaml pin + the statute reading. The 2021, 2022, 2023, 2024 and 2025 instructions have the line 2d text. - id: us-me:liheap-size-ten-income-limit program: liheap years: