From 994fbb8cc7f2211431228cf60ce2002c896f9c31 Mon Sep 17 00:00:00 2001 From: David Trimmer Date: Thu, 19 Nov 2026 19:12:49 -0500 Subject: [PATCH 1/3] Fix five state credit income definitions from the #10812 audit Arizona's property tax credit now counts tax-exempt IRA, 401(k), 403(b) and SEP distributions (ARS 43-1072(H)(6)(g), Form 140PTC line E). West Virginia's homestead excess property tax credit counts tax-exempt disability insurance as loss of earnings insurance (W. Va. Code 11-21-23(d)(1)(C)). Nebraska's child care refundable credit uses federal AGI plus the section 911, 931 and 933 exclusions (Neb. Rev. Stat. 77-7202(8), DOR worksheet line 2). Virginia's low-income credit adds dependents' own AGI to family VAGI (Va. Code 58.1-339.8(A)). North Dakota's renter's refund no longer lets a net capital loss reduce income, following the renter's refund application (SFN 24777). Co-Authored-By: Claude Opus 5.5 --- .../state-credit-income-small-fixes.fixed.md | 1 + .../credits/property_tax/income_sources.yaml | 8 + .../renters_refund/net_gain_components.yaml | 18 ++ .../heptc/gross_household_income/sources.yaml | 6 + .../az_property_tax_credit_income.yaml | 100 ++++++++++ .../nd_renters_refund_income.yaml | 177 ++++++++++++++++++ ...refundable_ctc_total_household_income.yaml | 87 ++++++++- ...va_low_income_tax_credit_agi_eligible.yaml | 140 ++++++++++++++ .../heptc/wv_gross_household_income.yaml | 75 ++++++++ .../nd_renters_refund_income.py | 21 +++ ...e_refundable_ctc_total_household_income.py | 17 +- .../va_low_income_tax_credit_agi_eligible.py | 23 ++- source_conflicts/candidates.yaml | 39 ++++ 13 files changed, 707 insertions(+), 5 deletions(-) create mode 100644 changelog.d/state-credit-income-small-fixes.fixed.md create mode 100644 policyengine_us/parameters/gov/states/nd/tax/property/renters_refund/net_gain_components.yaml create mode 100644 policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/credits/heptc/wv_gross_household_income.yaml diff --git a/changelog.d/state-credit-income-small-fixes.fixed.md b/changelog.d/state-credit-income-small-fixes.fixed.md new file mode 100644 index 00000000000..89c40c7d17e --- /dev/null +++ b/changelog.d/state-credit-income-small-fixes.fixed.md @@ -0,0 +1 @@ +Count tax-exempt retirement distributions in the Arizona property tax credit, tax-exempt disability insurance in West Virginia homestead excess property tax credit income, the section 911, 931 and 933 exclusions in Nebraska child care credit household income, and dependents' income in Virginia low-income credit family income. North Dakota renter's refund income no longer lets a net capital loss reduce income. diff --git a/policyengine_us/parameters/gov/states/az/tax/income/credits/property_tax/income_sources.yaml b/policyengine_us/parameters/gov/states/az/tax/income/credits/property_tax/income_sources.yaml index ab8ecb4f3a3..6d579a34829 100644 --- a/policyengine_us/parameters/gov/states/az/tax/income/credits/property_tax/income_sources.yaml +++ b/policyengine_us/parameters/gov/states/az/tax/income/credits/property_tax/income_sources.yaml @@ -7,6 +7,14 @@ values: # (taxable pension is already in Federal AGI via az_property_tax_credit_agi) - tax_exempt_public_pension_income - tax_exempt_private_pension_income + # ARS 43-1072(H)(6)(g) counts "the gross amount of any pension or annuity", + # A.A.C. R15-2C-502(A)(1) counts income "whether or not subject to Arizona + # income tax", and Form 140PTC line E counts "any IRA distributions" with + # all other pensions (2025 instructions, page 4). Federal AGI leaves out the + # nontaxable part of IRA, 401(k), 403(b) and SEP distributions (qualifying + # Roth distributions), so it is added here. ITR 12-1 item (9) leaves out + # rollovers, which these inputs don't hold. + - tax_exempt_retirement_distributions # Federal AGI minus Social Security (per ARS 43-1072(I) exclusion), with # federal above-the-line deductions other than loss_ald added back: # A.A.C. R15-2C-502(A)(1) counts "the sum of all income not specifically diff --git a/policyengine_us/parameters/gov/states/nd/tax/property/renters_refund/net_gain_components.yaml b/policyengine_us/parameters/gov/states/nd/tax/property/renters_refund/net_gain_components.yaml new file mode 100644 index 00000000000..8913c2b5b9c --- /dev/null +++ b/policyengine_us/parameters/gov/states/nd/tax/property/renters_refund/net_gain_components.yaml @@ -0,0 +1,18 @@ +description: North Dakota counts these market income components only as a net gain under the Renter's Refund program, so a net loss doesn't reduce income. +values: + 2025-01-01: + # Gains and losses from sales of capital assets. The applicant's and + # spouse's amounts net together, as on line 7, and each dependent's amount + # nets on its own, as on line 8; a net loss counts as zero. + - capital_gains +metadata: + unit: list + period: year + label: North Dakota Renter's Refund net gain components + reference: + - title: N.D.C.C. ยง 57-02-08.1(5)(c) + href: https://ndlegis.gov/cencode/t57c02.pdf#page=16 + - title: "North Dakota Office of State Tax Commissioner | SFN 24777 (10-2025), Application for Senior Citizens or Permanently and Totally Disabled Renter's Property Tax Refund, lines 7 and 8 and the instructions for lines 4 to 9 #page 1-2" + href: https://www.tax.nd.gov/sites/www/files/documents/forms/homestead-disabled-renters/renters-refund-application.pdf#page=1 + - title: North Dakota Office of State Tax Commissioner | Property Tax Credits for North Dakota Homeowners and Renters, item 10 + href: https://www.tax.nd.gov/sites/www/files/documents/guidelines/homestead-veterans-renters/credits-for-nd-homeowners-renters-guideline.pdf#page=2 diff --git a/policyengine_us/parameters/gov/states/wv/tax/income/credits/heptc/gross_household_income/sources.yaml b/policyengine_us/parameters/gov/states/wv/tax/income/credits/heptc/gross_household_income/sources.yaml index 940917dea99..d0507e0920f 100644 --- a/policyengine_us/parameters/gov/states/wv/tax/income/credits/heptc/gross_household_income/sources.yaml +++ b/policyengine_us/parameters/gov/states/wv/tax/income/credits/heptc/gross_household_income/sources.yaml @@ -22,5 +22,11 @@ values: - adjusted_gross_income - wv_additions - tax_exempt_interest_income + # W. Va. Code 11-21-23(d)(1)(C): "Workers' compensation and loss of + # earnings insurance" (Schedule HEPTC-1 line 4c, earnings replacement + # insurance). Disability benefits from a plan the recipient paid for are + # loss of earnings insurance that federal AGI leaves out (IRC 104(a)(3)); + # the taxable part is already in federal AGI. - workers_compensation + - tax_exempt_disability_benefits - tax_exempt_social_security diff --git a/policyengine_us/tests/policy/baseline/gov/states/az/tax/income/credits/az_property_tax_credit_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/az/tax/income/credits/az_property_tax_credit_income.yaml index f1f7d8f85e2..162dde0f179 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/az/tax/income/credits/az_property_tax_credit_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/az/tax/income/credits/az_property_tax_credit_income.yaml @@ -1033,3 +1033,103 @@ # Line 11b: Schedule 2, 3,851 - 4,000 -> 279. # Line 13: 750. Line 15: smaller of 279 and 750. az_property_tax_credit: 279 + +# Tax-exempt retirement account distributions. ARS 43-1072(H)(6)(g): income +# includes "the gross amount of any pension or annuity not otherwise +# exempted". A.A.C. R15-2C-502(A)(1) counts income "whether or not subject to +# Arizona income tax". 2025 Form 140PTC instructions, line E (page 4): +# "Pension income that you must enter here includes the following: ... any +# IRA distributions." ITR 12-1 item (9) leaves out only rollovers. + +- name: Roth IRA distribution is a line E pension amount + period: 2025 + input: + people: + head: + age: 70 + tax_exempt_ira_distributions: 3_000 + rent: 5_000 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: AZ + output: + # Line E: IRA distributions 3,000. Line J: 3,000. + az_property_tax_credit_income: 3_000 + az_property_tax_credit_household_income: 3_000 + # Line 11a: Schedule 1, 2,951 - 3,050 -> 212. Line 13: 0.15 x 5,000 = + # 750. Line 15: smaller of 212 and 750. + az_property_tax_credit: 212 + +- name: Nontaxable 401(k) distribution counts with the taxable pension + period: 2025 + input: + people: + head: + age: 70 + taxable_private_pension_income: 2_000 + tax_exempt_401k_distributions: 1_000 + rent: 5_000 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: AZ + output: + # Line E: gross pension and retirement plan payments 2,000 + 1,000 = 3,000. + # Line J: 3,000. + az_property_tax_credit_income: 3_000 + az_property_tax_credit_household_income: 3_000 + # Line 11a: Schedule 1, 2,951 - 3,050 -> 212. Line 13: 750. + az_property_tax_credit: 212 + +- name: Tax-exempt 403(b) distribution brings income to the last band below the limit + period: 2025 + input: + people: + head: + age: 70 + taxable_private_pension_income: 3_000 + tax_exempt_403b_distributions: 750 + rent: 5_000 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: AZ + output: + # Line E: 3,000 + 750 = 3,750. Line J: 3,750. + az_property_tax_credit_income: 3_750 + # ARS 43-1072(A)(3)(a): a claimant living alone needs income below + # 3,751. Line 11a: Schedule 1, 3,651 - 3,750 -> 56. Line 13: 750. + # Line 15: smaller of 56 and 750. + az_property_tax_credit: 56 + +- name: Tax-exempt SEP distribution one dollar more reaches the income limit + period: 2025 + input: + people: + head: + age: 70 + taxable_private_pension_income: 3_000 + tax_exempt_sep_distributions: 751 + rent: 5_000 + tax_units: + tax_unit: + members: [head] + households: + household: + members: [head] + state_code: AZ + output: + # Line E: 3,000 + 751 = 3,751. Line J: 3,751. + az_property_tax_credit_income: 3_751 + # Line 11a: Schedule 1, 3,751 and up -> 0. + az_property_tax_credit: 0 diff --git a/policyengine_us/tests/policy/baseline/gov/states/nd/tax/property/renters_refund/nd_renters_refund_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/nd/tax/property/renters_refund/nd_renters_refund_income.yaml index c369a77086c..7a86a9f4e3b 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/nd/tax/property/renters_refund/nd_renters_refund_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/nd/tax/property/renters_refund/nd_renters_refund_income.yaml @@ -816,3 +816,180 @@ output: # 9,000 - 4,000. The floor at zero absorbs none of the SSI. nd_renters_refund_income: 5_000 + +# Capital losses. N.D.C.C. 57-02-08.1(5)(c) counts income "from all sources" +# and has no rule for losses. The renter's refund application, SFN 24777 +# (10-2025), asks for the applicant's and spouse's capital gains on line 7 and +# each dependent's income on line 8, and its instructions for lines 4 to 9 +# (page 2) count "net gains from the sale of property"; it has no line for a +# loss. Item 10 of the Tax Commissioner's guideline also lists "Net gains from +# the sale of property". So a net capital loss counts as zero. + +- name: A net capital loss doesn't reduce renter's refund income. + absolute_error_margin: 0.01 + period: 2025 + input: + people: + person1: + age: 30 + employment_income: 30_000 + long_term_capital_gains: -20_000 + tax_units: + tax_unit: + members: [person1] + households: + household: + members: [person1] + state_code: ND + output: + # Wages 30,000. The net gain from the sale of property is zero, not + # -20,000 (or the -3,000 IRC 1211(b) allows on Form 1040 line 7). + nd_renters_refund_income: 30_000 + +- name: A senior renter's capital loss leaves income and the refund unchanged. + absolute_error_margin: 0.01 + period: 2025 + input: + people: + person1: + age: 65 + employment_income: 20_000 + social_security_retirement: 15_000 + long_term_capital_gains: -8_000 + rent: 9_600 + tax_units: + tax_unit: + members: [person1] + itemized_medical_expenses: 0 + households: + household: + members: [person1] + state_code: ND + output: + # 20,000 + 15,000 + 0 net gain = 35,000. + nd_renters_refund_income: 35_000 + # Line 12: 0.2 x 9,600 = 1,920. Line 13: 0.04 x 35,000 = 1,400. + # Line 14: 1,920 - 1,400 = 520. + nd_renters_refund: 520 + +- name: The applicant's and spouse's capital gains and losses net together. + absolute_error_margin: 0.01 + period: 2025 + input: + people: + person1: + age: 40 + employment_income: 20_000 + long_term_capital_gains: 10_000 + person2: + age: 40 + long_term_capital_gains: -4_000 + tax_units: + tax_unit: + members: [person1, person2] + households: + household: + members: [person1, person2] + state_code: ND + output: + # Line 7 net gain: 10,000 - 4,000 = 6,000. 20,000 + 6,000 = 26,000. + nd_renters_refund_income: 26_000 + +- name: A spouse's loss larger than the applicant's gain leaves a net gain of zero. + absolute_error_margin: 0.01 + period: 2025 + input: + people: + person1: + age: 40 + employment_income: 20_000 + long_term_capital_gains: 2_000 + person2: + age: 40 + short_term_capital_gains: -5_000 + tax_units: + tax_unit: + members: [person1, person2] + households: + household: + members: [person1, person2] + state_code: ND + output: + # Line 7 net gain: 2,000 - 5,000 = -3,000, counted as zero. 20,000. + nd_renters_refund_income: 20_000 + +- name: A dependent's capital loss doesn't offset the applicant's gain. + absolute_error_margin: 0.01 + period: 2025 + input: + people: + person1: + age: 40 + employment_income: 40_000 + long_term_capital_gains: 3_000 + person2: + age: 16 + short_term_capital_gains: -1_000 + tax_units: + tax_unit: + members: [person1, person2] + spm_units: + spm_unit: + members: [person1, person2] + # Set so the case isolates capital gains; TANF counts in this income. + tanf: 0 + households: + household: + members: [person1, person2] + state_code: ND + output: + # Line 7: wages 40,000 and net gain 3,000. Line 8: the dependent's net + # loss counts as zero. 40,000 + 3,000 = 43,000. + nd_renters_refund_income: 43_000 + +- name: Wages at the income limit with a capital loss are eligible. + absolute_error_margin: 0.01 + period: 2025 + input: + people: + person1: + age: 65 + employment_income: 70_000 + long_term_capital_gains: -5_000 + rent: 20_000 + tax_units: + tax_unit: + members: [person1] + itemized_medical_expenses: 0 + households: + household: + members: [person1] + state_code: ND + output: + # 70,000 + 0 net gain = 70,000, at the 70,000 limit (SFN 24777 line 11). + nd_renters_refund_income: 70_000 + # 0.2 x 20,000 = 4,000 > 0.04 x 70,000 = 2,800. + nd_renters_refund_eligible: true + +- name: Wages one dollar above the income limit with a capital loss are ineligible. + absolute_error_margin: 0.01 + period: 2025 + input: + people: + person1: + age: 65 + employment_income: 70_001 + long_term_capital_gains: -5_000 + rent: 20_000 + tax_units: + tax_unit: + members: [person1] + itemized_medical_expenses: 0 + households: + household: + members: [person1] + state_code: ND + output: + # 70,001 > 70,000. The loss no longer brings income under the limit. + nd_renters_refund_income: 70_001 + nd_renters_refund_eligible: false diff --git a/policyengine_us/tests/policy/baseline/gov/states/ne/tax/income/credits/ctc/refundable/ne_refundable_ctc_total_household_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/ne/tax/income/credits/ctc/refundable/ne_refundable_ctc_total_household_income.yaml index f326756bda9..dcae2676f4b 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/ne/tax/income/credits/ctc/refundable/ne_refundable_ctc_total_household_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/ne/tax/income/credits/ctc/refundable/ne_refundable_ctc_total_household_income.yaml @@ -1,7 +1,92 @@ -- name: NE refundable CTC total household income is the same as federal AGI +# Neb. Rev. Stat. 77-7202(8): "Total household income means federal modified +# adjusted gross income." Nebraska Department of Revenue, Child Care +# Refundable Tax Credit Total Household Income Calculation (page 1): line 1 is +# federal adjusted gross income; line 2 is "line 2d of the Federal Schedule +# 8812" (income from Puerto Rico and American Samoa and the Form 2555 +# exclusions); line 3, "Add lines 1 and 2. This amount is your total household +# income". Form 7203 instructions, Part A (page 2), say the same. + +- name: NE refundable CTC total household income equals federal AGI when no income is excluded period: 2024 input: adjusted_gross_income: 1000 state_code: NE output: ne_refundable_ctc_total_household_income: 1000 + +- name: Foreign earned income excluded under section 911 is added to federal AGI + period: 2025 + input: + adjusted_gross_income: 70_000 + # Form 2555 exclusion (Schedule 8812 line 2b). Income inputs, and so the + # adjusted gross income above, are net of it. + foreign_earned_income_exclusion: 10_000 + state_code: NE + output: + # Line 1: 70,000. Line 2: 10,000. Line 3: 80,000. + ne_refundable_ctc_total_household_income: 80_000 + +- name: Income from Puerto Rico excluded under section 933 is added to federal AGI + period: 2025 + input: + adjusted_gross_income: 60_000 + # Schedule 8812 line 2a. + puerto_rico_income: 5_000 + state_code: NE + output: + # Line 1: 60,000. Line 2: 5,000. Line 3: 65,000. + ne_refundable_ctc_total_household_income: 65_000 + +- name: Income from Puerto Rico brings total household income to the poverty guideline + period: 2025 + input: + people: + parent: + age: 30 + employment_income: 21_150 + child: + age: 3 + tax_units: + tax_unit: + members: [parent, child] + # Part of the wages is income from Puerto Rico that IRC 933 excludes, + # which the model deducts above the line. + puerto_rico_income: 1_150 + households: + household: + members: [parent, child] + state_code: NE + output: + # Line 1: 21,150 - 1,150 = 20,000. Line 2: 1,150. Line 3: 21,150. + adjusted_gross_income: 20_000 + ne_refundable_ctc_total_household_income: 21_150 + # 77-7203(1)(c): total household income at or below 100% of the federal + # poverty level, 15,650 + 5,500 = 21,150 for two people in 2025. + ne_refundable_ctc_income_eligible: true + # 77-7203(2)(a): 2,000 per child at no more than 75,000. + ne_refundable_ctc: 2_000 + +- name: Income from Puerto Rico one dollar more puts total household income above the poverty guideline + period: 2025 + input: + people: + parent: + age: 30 + employment_income: 21_151 + child: + age: 3 + tax_units: + tax_unit: + members: [parent, child] + puerto_rico_income: 1_151 + households: + household: + members: [parent, child] + state_code: NE + output: + # Line 1: 21,151 - 1,151 = 20,000. Line 2: 1,151. Line 3: 21,151. + adjusted_gross_income: 20_000 + ne_refundable_ctc_total_household_income: 21_151 + # 21,151 > 21,150, and the household reports no child care expenses. + ne_refundable_ctc_income_eligible: false + ne_refundable_ctc: 0 diff --git a/policyengine_us/tests/policy/baseline/gov/states/va/tax/income/credits/low_income_credit/va_low_income_tax_credit_agi_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/va/tax/income/credits/low_income_credit/va_low_income_tax_credit_agi_eligible.yaml index 95c61cb48fe..a5b90fbe40f 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/va/tax/income/credits/low_income_credit/va_low_income_tax_credit_agi_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/va/tax/income/credits/low_income_credit/va_low_income_tax_credit_agi_eligible.yaml @@ -33,3 +33,143 @@ va_agi: 40_000 output: va_low_income_tax_credit_agi_eligible: false + +# Va. Code 58.1-339.8(A): "'Family Virginia adjusted gross income' means the +# combined Virginia adjusted gross income of an individual, the individual's +# spouse, and any person claimed as a dependent on the individual's or his +# spouse's income tax return for the taxable year." (B)(1): the credit is +# allowed if family Virginia adjusted gross income "does not exceed 100 +# percent of the poverty guideline amount". 2025 Form 760 instructions, line +# 10 (page 31): enter the VAGI of each dependent who had income and add the +# amounts. + +- name: A dependent's own Virginia AGI counts in family VAGI + period: 2025 + input: + people: + parent: + age: 40 + is_tax_unit_dependent: false + child: + age: 17 + is_tax_unit_dependent: true + employment_income: 6_000 + tax_units: + tax_unit: + members: [parent, child] + va_low_income_tax_credit_eligible: true + # The filer's Virginia AGI and the poverty guideline are set directly + # so the arithmetic is exact. + va_agi: 18_000 + tax_unit_fpg: 21_150 + households: + household: + members: [parent, child] + state_code: VA + output: + # Family VAGI = 18,000 (parent) + 6,000 (the child's wages; the child's + # federal and Virginia AGI are both 6,000) = 24,000 > 21,150. + va_low_income_tax_credit_agi_eligible: false + +- name: Family VAGI with a dependent's income exactly at the poverty guideline is eligible + period: 2025 + input: + people: + parent: + age: 40 + is_tax_unit_dependent: false + child: + age: 17 + is_tax_unit_dependent: true + employment_income: 6_000 + tax_units: + tax_unit: + members: [parent, child] + va_low_income_tax_credit_eligible: true + va_agi: 15_150 + tax_unit_fpg: 21_150 + households: + household: + members: [parent, child] + state_code: VA + output: + # 15,150 + 6,000 = 21,150, which does not exceed 21,150. + va_low_income_tax_credit_agi_eligible: true + +- name: Family VAGI with a dependent's income one dollar above the poverty guideline is ineligible + period: 2025 + input: + people: + parent: + age: 40 + is_tax_unit_dependent: false + child: + age: 17 + is_tax_unit_dependent: true + employment_income: 6_001 + tax_units: + tax_unit: + members: [parent, child] + va_low_income_tax_credit_eligible: true + va_agi: 15_150 + tax_unit_fpg: 21_150 + households: + household: + members: [parent, child] + state_code: VA + output: + # 15,150 + 6,001 = 21,151 > 21,150. + va_low_income_tax_credit_agi_eligible: false + +- name: Parent and working teenager below the poverty guideline get the credit + period: 2025 + input: + people: + parent: + age: 40 + employment_income: 15_000 + child: + age: 16 + employment_income: 4_000 + tax_units: + tax_unit: + members: [parent, child] + households: + household: + members: [parent, child] + state_code: VA + output: + # The parent's Virginia AGI is federal AGI, 15,000, with no Virginia + # additions or subtractions; federal AGI leaves out the child's wages. + va_agi: 15_000 + dependent_adjusted_gross_income: [0, 4_000] + # Family VAGI = 15,000 + 4,000 = 19,000. The 2025 poverty guideline for + # two is 15,650 + 5,500 = 21,150. + va_low_income_tax_credit_agi_eligible: true + # 58.1-339.8(B)(1): 300 for each of the two exemptions. + va_low_income_tax_credit: 600 + +- name: Parent and working teenager above the poverty guideline get no credit + period: 2025 + input: + people: + parent: + age: 40 + employment_income: 15_000 + child: + age: 16 + employment_income: 7_000 + tax_units: + tax_unit: + members: [parent, child] + households: + household: + members: [parent, child] + state_code: VA + output: + va_agi: 15_000 + dependent_adjusted_gross_income: [0, 7_000] + # Family VAGI = 15,000 + 7,000 = 22,000 > 21,150. The parent's Virginia + # AGI alone, 15,000, would pass. + va_low_income_tax_credit_agi_eligible: false + va_low_income_tax_credit: 0 diff --git a/policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/credits/heptc/wv_gross_household_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/credits/heptc/wv_gross_household_income.yaml new file mode 100644 index 00000000000..11142e29f73 --- /dev/null +++ b/policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/credits/heptc/wv_gross_household_income.yaml @@ -0,0 +1,75 @@ +# W. Va. Code 11-21-23(d)(1): gross household income is federal adjusted gross +# income plus "(C) Workers' compensation and loss of earnings insurance". +# 2025 Schedule HEPTC-1 line 4c (page 11): "earnings replacement insurance +# (Workers' Compensation Benefits)". Disability benefits from a plan the +# recipient paid for are loss of earnings insurance outside federal AGI +# (IRC 104(a)(3)). + +- name: Disability insurance benefits outside federal AGI are loss of earnings insurance + period: 2025 + absolute_error_margin: 0.01 + input: + age: 60 + state_code: WV + employment_income: 20_000 + workers_compensation: 1_000 + tax_exempt_disability_benefits: 4_000 + output: + # Federal AGI 20,000 + 1,000 workers' compensation + 4,000 loss of + # earnings insurance. + wv_gross_household_income: 25_000 + +- name: Loss of earnings insurance raises the income offset in the credit + period: 2025 + absolute_error_margin: 0.01 + input: + age: 60 + state_code: WV + employment_income: 20_000 + # A plan the recipient paid for: all of it is tax-exempt. + disability_benefits: 5_000 + tax_exempt_disability_benefits: 5_000 + real_estate_taxes: 1_500 + output: + # Line 4: federal AGI 20,000 (at most 3 x 15,650 = 46,950, the 2025 + # guideline for one person). Line 4c: 5,000. Line 6: 25,000. + wv_gross_household_income: 25_000 + # Line 7: 4% x 25,000 = 1,000. Line 3: 1,500 > 1,000. + wv_homestead_excess_property_tax_credit_eligible: true + # Line 9: smaller of 1,500 - 1,000 = 500 and 1,000. + wv_homestead_excess_property_tax_credit: 500 + +- name: Property tax equal to 4 percent of income with loss of earnings insurance gets no credit + period: 2025 + absolute_error_margin: 0.01 + input: + age: 60 + state_code: WV + employment_income: 20_000 + # A plan the recipient paid for: all of it is tax-exempt. + disability_benefits: 5_000 + tax_exempt_disability_benefits: 5_000 + real_estate_taxes: 1_000 + output: + # Line 6: 20,000 + 5,000 = 25,000. Line 7: 4% x 25,000 = 1,000. + wv_gross_household_income: 25_000 + # Line 8: line 3 (1,000) is not greater than line 7 (1,000). + wv_homestead_excess_property_tax_credit_eligible: false + wv_homestead_excess_property_tax_credit: 0 + +- name: Property tax one dollar above 4 percent of income gets a one dollar credit + period: 2025 + absolute_error_margin: 0.01 + input: + age: 60 + state_code: WV + employment_income: 20_000 + # A plan the recipient paid for: all of it is tax-exempt. + disability_benefits: 5_000 + tax_exempt_disability_benefits: 5_000 + real_estate_taxes: 1_001 + output: + wv_gross_household_income: 25_000 + # Line 8: 1,001 > 1,000. Line 9: 1,001 - 1,000 = 1. + wv_homestead_excess_property_tax_credit_eligible: true + wv_homestead_excess_property_tax_credit: 1 diff --git a/policyengine_us/variables/gov/states/nd/tax/property/renters_refund/nd_renters_refund_income.py b/policyengine_us/variables/gov/states/nd/tax/property/renters_refund/nd_renters_refund_income.py index cd9cb5e5327..15f85995d49 100644 --- a/policyengine_us/variables/gov/states/nd/tax/property/renters_refund/nd_renters_refund_income.py +++ b/policyengine_us/variables/gov/states/nd/tax/property/renters_refund/nd_renters_refund_income.py @@ -10,6 +10,9 @@ class nd_renters_refund_income(Variable): reference = ( "https://ndlegis.gov/cencode/t57c02.pdf#page=16", "https://www.tax.nd.gov/sites/www/files/documents/guidelines/homestead-veterans-renters/credits-for-nd-homeowners-renters-guideline.pdf#page=2", + # SFN 24777 (10-2025), lines 7 and 8 and the instructions for lines + # 4 to 9, PDF pages 1-2. + "https://www.tax.nd.gov/sites/www/files/documents/forms/homestead-disabled-renters/renters-refund-application.pdf#page=1", ) defined_for = StateCode.ND @@ -23,6 +26,11 @@ class nd_renters_refund_income(Variable): "exclusion from the tax unit's income that holds it. For Puerto Rico " "and American Samoa income, it subtracts the exclusion from market " "income before losses. Social security counts in full. " + "Capital gains count only as a net gain (net_gain_components): the " + "applicant's and spouse's gains and losses net together, each " + "dependent's net separately, and a net loss counts as zero, since the " + "renter's refund application counts net gains from the sale of " + "property and has no line for a loss (SFN 24777). " "The paid-cost base restores the self-employed premiums excluded from " "the federal subtotal: by the federal formula, or as supplied with a " "caller's subtotal in itemized_medical_expenses_applied_exclusion. A " @@ -92,6 +100,18 @@ def formula(tax_unit, period, parameters): 0, ) deducted_exclusions = deducted_exclusions + min_(without_holder, income_left) + # SFN 24777 counts "net gains from the sale of property" (instructions + # for lines 4 to 9) and has no line for a loss. Line 7 takes the + # applicant's and spouse's capital gains together, and line 8 each + # dependent's income. market_income keeps a net loss, so add it back: + # the filers' combined net loss and each dependent's own. + net_gains = add(person, period, p.net_gain_components) + is_dependent = person("is_tax_unit_dependent", period) + filers_net_gain = tax_unit.sum(where(is_dependent, 0, net_gains)) + dependents_net_losses = tax_unit.sum( + where(is_dependent, max_(-net_gains, 0), 0) + ) + net_losses = max_(-filers_net_gain, 0) + dependents_net_losses # Restore premiums excluded from the federal subtotal (computed, or # supplied with a caller's subtotal). medical_expenses = add( @@ -118,6 +138,7 @@ def formula(tax_unit, period, parameters): ) return max_( add(tax_unit, period, p.income_sources) + + net_losses - person_exclusions - deducted_exclusions - medical_expenses, diff --git a/policyengine_us/variables/gov/states/ne/tax/income/credits/ctc/refundable/ne_refundable_ctc_total_household_income.py b/policyengine_us/variables/gov/states/ne/tax/income/credits/ctc/refundable/ne_refundable_ctc_total_household_income.py index f1b3699e8ab..4c27f7d1abf 100644 --- a/policyengine_us/variables/gov/states/ne/tax/income/credits/ctc/refundable/ne_refundable_ctc_total_household_income.py +++ b/policyengine_us/variables/gov/states/ne/tax/income/credits/ctc/refundable/ne_refundable_ctc_total_household_income.py @@ -6,12 +6,25 @@ class ne_refundable_ctc_total_household_income(Variable): entity = TaxUnit label = "Nebraska refundable Child Tax Credit total household income" unit = USD + documentation = ( + "Total household income for the Nebraska child care refundable tax " + "credit: federal modified adjusted gross income (Neb. Rev. Stat. " + "77-7202(8)). The Department of Revenue's worksheet adds Schedule 8812 " + "line 2d to federal adjusted gross income: income from Puerto Rico and " + "American Samoa and the Form 2555 foreign earned income and housing " + "amounts (IRC 933, 931 and 911)." + ) definition_period = YEAR reference = ( + "https://nebraskalegislature.gov/laws/statutes.php?statute=77-7202", "https://nebraskalegislature.gov/laws/statutes.php?statute=77-7203", "https://revenue.nebraska.gov/businesses/child-care-tax-credit-act", + # Child Care Refundable Tax Credit Total Household Income Calculation, + # lines 1 to 3. + "https://revenue.nebraska.gov/sites/default/files/doc/tax-forms/Child_Care_Total_Household_Income_Calculation.pdf#page=1", + # Form 7203 instructions, Part A. + "https://revenue.nebraska.gov/sites/default/files/doc/tax-forms/f_7203_instruction_only.pdf#page=2", ) defined_for = StateCode.NE - def formula(tax_unit, period, parameters): - return tax_unit("adjusted_gross_income", period) + adds = ["agi_plus_section_911_931_933_exclusions"] diff --git a/policyengine_us/variables/gov/states/va/tax/income/credits/low_income_credit/va_low_income_tax_credit_agi_eligible.py b/policyengine_us/variables/gov/states/va/tax/income/credits/low_income_credit/va_low_income_tax_credit_agi_eligible.py index da4d3a68049..4fc3bd9d847 100644 --- a/policyengine_us/variables/gov/states/va/tax/income/credits/low_income_credit/va_low_income_tax_credit_agi_eligible.py +++ b/policyengine_us/variables/gov/states/va/tax/income/credits/low_income_credit/va_low_income_tax_credit_agi_eligible.py @@ -5,11 +5,30 @@ class va_low_income_tax_credit_agi_eligible(Variable): value_type = bool entity = TaxUnit label = "Eligible for the Virginia low income tax credit" + documentation = ( + "Whether family Virginia adjusted gross income is at or below the " + "poverty guideline (Va. Code 58.1-339.8(B)(1)). Family Virginia " + "adjusted gross income combines the Virginia adjusted gross income of " + "the filer, the spouse and every dependent claimed on the return " + "(58.1-339.8(A)). va_agi holds the filers' part. The model has no " + "Virginia return for a dependent, so each dependent's federal " + "adjusted gross income on their own return " + "(dependent_adjusted_gross_income) stands in for their Virginia " + "adjusted gross income." + ) definition_period = YEAR + reference = ( + "https://law.lis.virginia.gov/vacode/title58.1/chapter3/section58.1-339.8/", + # Line 10, Compute your Family VAGI. + "https://www.tax.virginia.gov/sites/default/files/vatax-pdf/2025-760-instructions.pdf#page=31", + ) defined_for = "va_low_income_tax_credit_eligible" def formula(tax_unit, period, parameters): - agi = tax_unit("va_agi", period) + filer_agi = tax_unit("va_agi", period) + # Federal AGI, and so va_agi, leaves out a dependent's own income. + dependent_agi = add(tax_unit, period, ["dependent_adjusted_gross_income"]) + family_agi = filer_agi + dependent_agi # Virginia does not account for blind or aged exemptions fpg = tax_unit("tax_unit_fpg", period) - return agi <= fpg + return family_agi <= fpg diff --git a/source_conflicts/candidates.yaml b/source_conflicts/candidates.yaml index 0d95b77fb9e..db1bc744550 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -8520,6 +8520,45 @@ candidates: and $105,227; 8, $107,574 and $107,565; 9, $109,914 and $109,903; 11, $114,582 and $114,580; 12, $116,922 and $116,919. Size 1 is below the ceiling, size 10 equals it, and from size 13 150% of the guideline exceeds the table. Verify each later fiscal-year table.' +- id: us-nd:renters-refund-capital-losses + program: renter-credit + years: + from: 2025 + type: tax + question: Does a net capital loss reduce renter's refund income, when the renter's refund application counts net + gains from the sale of property and the homestead credit application, under the same definition of income, takes + Form 1040 line 7, which allows a net loss of up to $3,000? + sources: + - kind: statute + citation: N.D.C.C. 57-02-08.1(5)(c) + url: https://ndlegis.gov/cencode/t57c02.pdf#page=16 + - kind: form + citation: SFN 24777 (10-2025), lines 7 and 8 and the instructions for lines 4 to 9, pages 1 and 2 + url: https://www.tax.nd.gov/sites/www/files/documents/forms/homestead-disabled-renters/renters-refund-application.pdf#page=1 + - kind: guidance + citation: Property Tax Credits for North Dakota Homeowners and Renters, item 10 + url: https://www.tax.nd.gov/sites/www/files/documents/guidelines/homestead-veterans-renters/credits-for-nd-homeowners-renters-guideline.pdf#page=2 + - kind: form + citation: SFN 24757 (10-2025), 2026 homestead credit application, line 4e + url: https://www.tax.nd.gov/sites/www/files/documents/property-tax/2026-homestead-credit-application.pdf#page=1 + readings: + statute: Income is income "for the most recent complete taxable year from all sources", with no rule for losses. + other: The instructions for lines 4 to 9 of SFN 24777 and item 10 of the guideline list "net gains from the sale of + property" as income, and SFN 24777 line 7 asks for capital gains with no line for a loss. SFN 24757 line 4e asks + for "Capital gains and losses (From Form 1040 or 1040-SR, line 7)", where IRC 1211(b) allows a net loss of up to + $3,000. + example: A renter with $30,000 of wages and a $20,000 net long-term capital loss has income of $30,000 under SFN + 24777 and $27,000 under SFN 24757 line 4e. + pe_us: + follows: gap-fill + code: + - policyengine_us/variables/gov/states/nd/tax/property/renters_refund/nd_renters_refund_income.py + - policyengine_us/parameters/gov/states/nd/tax/property/renters_refund/net_gain_components.yaml + state: ruled + note: Ruled 2026-11-19 for the renter's refund application, the form the Tax Commissioner prescribes for this program + under N.D.C.C. 57-02-08.1(3). Before, the model let the whole loss reduce income, which no source supports. The + applicant's and spouse's gains and losses net together, as on line 7 and a joint Form 1040, and each dependent's net + loss counts as zero. - id: us-nd:renters-refund-federally-excluded-income program: renter-credit years: From f4ae52a3daf31f8f6922adea2ca9a781983ec947 Mon Sep 17 00:00:00 2001 From: David Trimmer Date: Thu, 19 Nov 2026 19:30:08 -0500 Subject: [PATCH 2/3] Link the North Dakota capital loss candidate to its PR Co-Authored-By: Claude Opus 5.5 --- source_conflicts/candidates.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source_conflicts/candidates.yaml b/source_conflicts/candidates.yaml index db1bc744550..35085eac00e 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -8554,6 +8554,8 @@ candidates: code: - policyengine_us/variables/gov/states/nd/tax/property/renters_refund/nd_renters_refund_income.py - policyengine_us/parameters/gov/states/nd/tax/property/renters_refund/net_gain_components.yaml + prs: + - https://github.com/PolicyEngine/policyengine-us/pull/11187 state: ruled note: Ruled 2026-11-19 for the renter's refund application, the form the Tax Commissioner prescribes for this program under N.D.C.C. 57-02-08.1(3). Before, the model let the whole loss reduce income, which no source supports. The From 7afe8b93bd9d1a3e96d2265823515dadb06269fa Mon Sep 17 00:00:00 2001 From: David Trimmer <178813244+DTrim99@users.noreply.github.com> Date: Fri, 20 Nov 2026 16:17:03 -0500 Subject: [PATCH 3/3] Fix issues from review: give the WV disability case its total disability benefits The WV gross household income disability case set only tax_exempt_disability_benefits. Add the matching disability_benefits input so the case describes a recipient-paid plan whose benefits are fully tax-exempt. Co-Authored-By: Claude Opus 5.5 --- .../wv/tax/income/credits/heptc/wv_gross_household_income.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/credits/heptc/wv_gross_household_income.yaml b/policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/credits/heptc/wv_gross_household_income.yaml index 11142e29f73..bf0e9cf230c 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/credits/heptc/wv_gross_household_income.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/credits/heptc/wv_gross_household_income.yaml @@ -13,6 +13,8 @@ state_code: WV employment_income: 20_000 workers_compensation: 1_000 + # A plan the recipient paid for: all of it is tax-exempt. + disability_benefits: 4_000 tax_exempt_disability_benefits: 4_000 output: # Federal AGI 20,000 + 1,000 workers' compensation + 4,000 loss of