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..12ae375da4c --- /dev/null +++ b/changelog.d/me-fairness-credit-income.fixed.md @@ -0,0 +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. 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/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/income_sources.yaml b/policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/income_sources.yaml index 69511996e9f..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,14 +1,26 @@ description: Maine accounts for the following income sources for the sales and property tax credits. values: 2021-01-01: - - irs_gross_income + # 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 + # "Payments received under the federal Social Security Act" include + # 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 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 + - 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_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..106607dbda2 --- /dev/null +++ b/policyengine_us/tests/policy/baseline/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.yaml @@ -0,0 +1,265 @@ +# 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 + 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: 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 + 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: An SSTB loss is added back in full, not netted against other Schedule C income. + period: 2025 + absolute_error_margin: 0.01 + input: + state_code: ME + self_employment_income: 10_000 + sstb_self_employment_income: -3_000 + output: + # 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 is added back in full 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: + # 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 is added back in full 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: + # 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 is added back in full 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: + # Capital losses are added back in full: 20,000 + 10,000 = 30,000, not 26,000. + me_fairness_credit_federal_income: 30_000 + +- 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: + state_code: ME + employment_income: 20_000 + non_sch_d_capital_gains: 2_000 + long_term_capital_gains: -5_000 + output: + # 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 + 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 + +- 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/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..e3059bcb2ec --- /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,206 @@ +# 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". 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 + 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 + +- 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 + +- 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/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..c49951a9632 --- /dev/null +++ b/policyengine_us/variables/gov/states/me/tax/income/credits/fairness/me_fairness_credit_federal_income.py @@ -0,0 +1,58 @@ +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 losses added back" + documentation = ( + "Federal gross income with losses added back. Trade or business, " + "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 = ( + "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: 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): + 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, 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. + 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/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/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"])) diff --git a/source_conflicts/candidates.yaml b/source_conflicts/candidates.yaml index b8ec15773c6..f918ba4b9a4 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -6566,6 +6566,66 @@ 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. 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 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: