Skip to content

Encode Hawaii wagering losses and protect them in the total itemized deduction worksheet #1663

Open

Description

@MaxGhenis

Encoding gap

Parity status: queued. Filed by the US + core hub on 2026-10-11 under Max's standing go d1142 (the hub files dispatch-ready pe-parity issues; the Axiom eng hub runs the signed encoder). Each signed-encoder run needs Max's separate approval. PolicyEngine side: PolicyEngine/policyengine-us#10070.

At rulespec-us origin/main 16a6677190, us-hi/policies/income_tax/resident_core_liability_pipeline.yaml:88–90 defers complete itemized deductions. Its rationale at lines 40–41 still cites December 31, 2024 conformity. No wagering output or §235-2.3/§235-2.4 module exists.

Create us-hi/statutes/235-2.3.yaml, us-hi/statutes/235-2.4.yaml and proposed us-hi/policies/income_tax/itemized_deductions.yaml. Preserve unrelated holds.

Corpus

At axiom-corpus origin/main 51bbc7cb6f, existing modules cite us-hi/statute/235-2.3 and /235-2.4. Wave-6 decisions identify §235-2.4 in Chapter 235, and manifests/us-hi-income-tax-w6-forms.yaml:208 records full TY2024 instructions.

manifests/us-hi-2025-n11-capital-gain-worksheet.yaml extracts only PDF p. 35, citation us-hi/form/individual-income-tax/2025/n-11-instructions/capital-gains-tax-worksheet. It does not establish itemized-page coverage.

Extend the TY2025 source to PDF pp. 19 and 34 and locate/ingest Act 35, proposed citation us-hi/statute/session-laws/2026/act-35. Act coverage, R2 bytes, selected release and publication were not verified. Fetch failed on read-only FETCH_HEAD; freshness is unverified.

Sources and dates

2025 N-11 instructions, PDF p. 19:

Gambling losses, but only to the extent of gambling winnings reported on federal Schedule 1

Worksheet A-6 line 30 is outside the 2% floor. Total-itemized worksheet, PDF p. 34, line 2d:

Any gambling and casualty or theft losses included in Worksheet A-6, line 30

Its protected-only branch says:

No. Your deduction is not limited.

The 2024 instructions support the same treatment on PDF pp. 19 and 32.

Act 35 of 2026, PDF p. 2 advances IRC conformity to December 31, 2025. PDF p. 23 makes §165 operative with exceptions that do not disallow subsection (d). PDF p. 35 applies the amendments to taxable years:

beginning after December 31, 2025

Adoption of the 90% allowance is an inference from these provisions and federal §70114, PDF p. 96, rather than a verified final 2026 N-11 worksheet.

Required outputs

Under us-hi:policies/income_tax/itemized_deductions, TaxUnit, Year, Money/USD:

  • #wagering_losses_itemized_component: full losses capped at gains for TY2024–2025; 90% capped at gains from TY2026.
  • #limited_itemized_deduction_base: max(total minus protected medical, investment-interest, casualty/theft and wagering amounts, zero).
  • #itemized_deductions_after_limitation: total minus the smaller of 80% of that base and 3% of positive Hawaii AGI excess over $166,800, or $83,400 for married filing separately.

Return the full total when protected deductions cover it or AGI is below the threshold. Use taxpayer/spouse return facts, excluding dependents.

Encoder review finding

Encode dated Hawaii conformity and Worksheet A-6 line30, then compose the total-itemized worksheet. Include the section165(d) allowed wagering component outside both the2% floor and overall limitation base. Floor the limited base at zero. Preserve both "deduction is not limited" branches: protected-only totals and AGI at/below threshold return the full total. Act35 incorporates December31,2025 federal law for years beginning after2025; use90% from2026. Exclude dependent-return gambling and preserve unrelated Hawaii holds.

Companion tests

PE inputs Expected and arithmetic
2026: wages $200,000; winnings/losses $10,000 each AGI $210,000; protected losses $9,000; total/allowed deductions $9,000.
2025: same income/gambling; charity $20,000 Total $30,000; limited base $20,000; reduction min($16,000,3% × $43,200) = $1,296; allowed $28,704.
2025 worksheet: single; total $10,000; wagering allowance $4,000; AGI $266,800 Reduction min($4,800,$3,000) = $3,000; allowed $7,000.
Reused federal dependent case, 2024: parent $10,000/$2,000; dependent $5,000/$9,000 Parent wagering component $2,000.

Known limits

PE does not identify professional activity, lottery sources or nonresident transactions. Final 2026 forms and complete liability remain separate source boundaries.

What PolicyEngine does

Repairs policyengine_us/parameters/gov/states/hi/tax/income/deductions/itemized/sources.yaml and policyengine_us/variables/gov/states/hi/tax/income/deductions/itemized/hi_reduced_itemized_deductions.py.

Tests: hi_itemized_deductions.yaml and hi_reduced_itemized_deductions.yaml under policyengine_us/tests/policy/baseline/gov/states/hi/tax/income/deductions/itemized/; dependent numbers reuse federal wagering_losses_deduction.yaml.

Activity

  1. added
    pe-parity
    on Oct 11, 2026
  2. MaxGhenis commented on Nov 14, 2026

    @MaxGhenis
    ContributorAuthor

    Extension: the limitation worksheet for 2021 to 2026 (from PolicyEngine/policyengine-us#9940)

    At 430d72b440, PolicyEngine/policyengine-us#9940 rebuilds Hawaii's Total Itemized Deductions Worksheet for 2021 onward. It deletes hi_reduced_itemized_deductions, the variable this issue names under "What PolicyEngine does", and replaces it with hi_itemized_deductions_reduction. Before it, PE limited a filer only when Hawaii AGI reached the 2009 federal amount for the filer's status: $250,200 joint and surviving spouse, $208,500 head of household and $125,100 separate. PE now applies $166,800 to every status except married filing separately ($83,400), as the worksheet does. It also returns the full total when the protected deductions make up all of it.

    The required output #itemized_deductions_after_limitation above already states this rule. This comment adds the law that dates it for 2026 and companion rows for every filing status. #2219 queues the charitable and miscellaneous deductions that #9940 changes inside the worksheet's total.

    Parity status: queued. The pinned corpus lacks Act 35 and the 2021 to 2025 N-11 worksheet pages, and each billed encoder run needs separate approval. I ran no encoder and no workflow.

    Law

    Act 35, SLH 2026, signed copy, PDF page 19, amending HRS 235-2.4(b) for taxable years beginning after December 31, 2025 (section 7(1), PDF page 35), says of section 68:

    [...] operative in the form that it existed as of December 31, 2024; provided that the thresholds shall be those [...] operative for federal tax year 2009

    So the 2026 worksheet keeps the 3% and 80% rule of 26 U.S.C. 68 (2024 edition), and the current 2/37 form in us/statutes/26/68 stays out of Hawaii. The 2009 Schedule A worksheet, line 6, gives the threshold: $166,800, or $83,400 if married filing separately.

    PE's protected list holds medical expenses, investment interest and casualty losses (excluded_deductions.yaml). PE's Hawaii itemized deductions don't yet include wagering losses, which #10070 adds.

    Companion rows

    Rows come from hi_itemized_deductions.yaml and hi_itemized_deductions_reduction.yaml at 430d72b440. Each case sets Hawaii AGI and the worksheet total directly. Line 5 takes 80% of the unprotected deductions, line 9 takes 3% of Hawaii AGI above the threshold, and line 10 takes the smaller. Amounts use USD.

    Allowed itemized deductions (hi_itemized_deductions.yaml)

    Lines Year and status Hawaii AGI Total (protected) Arithmetic Allowed
    32-42 2026 joint 200,000 30,000 (0) min(24,000, 3% x 33,200 = 996) 29,004
    44-52 2026 head of household 200,000 30,000 (0) the same 29,004
    54-62 2026 surviving spouse 200,000 30,000 (0) the same 29,004
    75-83 2026 single 200,000 30,000 (0) the same 29,004
    64-73 2026 separate 100,000 30,000 (0) min(24,000, 3% x 16,600 = 498) 29,502
    122-130 2025 joint 200,000 30,000 (0) the 2026 joint row 29,004
    112-120 2026 joint 166,800 30,000 (0) AGI not above the threshold 30,000
    85-96 2026 single 300,000 20,000 (20,000 medical) line 4: not limited 20,000
    98-110 2026 single 1,000,000 50,000 (45,000 medical) min(80% x 5,000 = 4,000, 24,996) 46,000
    132-142 2026 joint 1,000,000 30,000 (0) min(24,000, 3% x 833,200 = 24,996) 6,000

    Reduction (hi_itemized_deductions_reduction.yaml)

    Lines Year and status Hawaii AGI Total (protected) Arithmetic Reduction
    1-24 2022 separate 200,000 10,000 (900: medical 300, casualty 400, investment interest 2 x 100) min(80% x 9,100 = 7,280, 3% x 116,600 = 3,498) 3,498
    26-47 2022 joint 166,779 10,000 (900) AGI below the threshold 0
    49-70 2022 joint 166,880 900 (900) line 4: not limited 0
    72-82 2026 joint 200,000 30,000 (0) min(24,000, 996) 996
    94-104 2026 joint 1,000,000 30,000 (0) min(24,000, 24,996) 24,000
    106-114 2026 single -50,000 30,000 (0) AGI below the threshold 0

    The joint, head of household and surviving spouse rows at $200,000 tell the 2009 threshold apart from the federal amounts PE used before. Each of those amounts exceeds $200,000, so the old rule gave $30,000 in all three rows.

    This comment makes no encoded-correct claim. Each billed encoder run needs separate approval.

    🤖 Generated with Claude Code

  3. MaxGhenis commented on Nov 14, 2026

    @MaxGhenis
    ContributorAuthor

    At 86c3e2f48f, the head of PolicyEngine/policyengine-us#10070, PE counts gambling losses in Hawaii's itemized deductions and keeps them outside the 80% ceiling of the limitation. The law this issue encodes stays the same, but the PE files it names have moved.

    • Main deleted the variable this issue names. PolicyEngine/policyengine-us#9940 replaced hi_reduced_itemized_deductions with a list of the deductions the limitation leaves out and a separate reduction. The branch merged it, so the PR now changes these files:
      • sources.yaml, lines 9–10 adds wagering_losses_deduction to Hawaii's itemized total (Worksheet A-6, line 30).
      • limitation/excluded_deductions.yaml, lines 9–10 adds it to the deductions the 80% ceiling leaves out (Total Itemized Deductions Worksheet, line 2d). The list starts in 2021, and PE copies each parameter's earliest value back to 2015, so the exclusion holds in every year PE models.
      • hi_itemized_deductions_reduction changes only in a comment. It takes the smaller of 80% of max(0, total − excluded deductions) and 3% of Hawaii AGI above the threshold. hi_itemized_deductions subtracts that reduction from the total.
      • The cases sit in hi_itemized_deductions.yaml and hi_itemized_deductions_reduction.yaml under policyengine_us/tests/policy/baseline/gov/states/hi/tax/income/deductions/itemized/. The property test's excluded set now holds wagering too.
    • The protected list now holds wagering. The comment above, written at #9940's head, lists medical expenses, investment interest and casualty losses. At this head the list also holds wagering losses, as line 2d does and as 26 U.S.C. 68(c)(3) (2024 edition) does for losses described in section 165(d).

    Rows in the table above, at this head

    Every row keeps its expected value:

    The two "not limited" branches in the required outputs also have rows. Case 2, lines 26–50, with AGI below the threshold, expects hi_itemized_deductions 10,000. Case 3, lines 52–77, where protected deductions make up the total, expects 900.

    Companion row to add

    The 80% ceiling binds and leaves out gambling losses (case 9, lines 146–159)

    • 2025, single, Hawaii: hi_agi: 1_000_000, wagering_losses_deduction: 4_000 and hi_total_itemized_deductions: 10_000. Like the rows in the comment above, the case sets Hawaii AGI and the worksheet total directly.
    • Expect hi_itemized_deductions_reduction 4,800 and hi_itemized_deductions 5,200.
    • 2025 worksheet, PDF page 34: line 1 = 10,000. Line 2d = 4,000, so line 3 = 4,000 and line 4 = 10,000 − 4,000 = 6,000. Line 5 = 80% × 6,000 = 4,800. Line 8 = 1,000,000 − 166,800 = 833,200, and line 9 = 3% × 833,200 = 24,996. Line 10 = min(4,800, 24,996) = 4,800, and line 11 = 10,000 − 4,800 = 5,200.
    • Without the line 2d entry, line 5 would equal 80% × 10,000 = 8,000. With wagering_losses_deduction removed from PE's excluded list, this case gives a reduction of 8,000, and case 14 above allows 7,704 instead of 9,000.

    What the corpus holds

    • axiom-corpus main at 7242a02292 lists the 2018 to 2024 N-11 instructions in us-hi-income-tax-w6-forms.yaml and us-hi-individual-income-tax-forms.yaml. It lists the full 2025 instructions, citation us-hi/form/dotax/ty2025/form-n-11-instructions, in us-hi-individual-income-tax-forms-ty2025-closure.yaml.
    • The release that rulespec-us pins, us-rulespec-2026-10-29-ecfr-section-text, has one Hawaii form scope, 2026-07-22-hi-2025-n11-capital-gain-worksheet, which extracts PDF page 35 alone. So the worksheet on page 34 and the earlier years stay outside the release.
    • Neither the corpus legislation manifest for Hawaii nor a code search of axiom-corpus finds Act 35 of 2026.
    • rulespec-us main at 8081f0cc69 still has no us-hi/statutes/235-2.3.yaml, 235-2.4.yaml or us-hi/policies/income_tax/itemized_deductions.yaml.

    This comment makes no encoded-correct claim. Each billed encoder run needs separate approval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pe-parity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions