Skip to content

Add back losses and listed deductions in Vermont renter credit income - #11178

Open
DTrim99 wants to merge 4 commits into
mainfrom
vt-renter-credit-income
Open

DTrim99 wants to merge 4 commits into
mainfrom
vt-renter-credit-income

Conversation

@DTrim99

@DTrim99 DTrim99 commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #10812 (state credit income audit).

What was wrong

vt_renter_credit_income was federal AGI + 75% of tax_exempt_social_security + tax-exempt interest. 32 V.S.A. 6061(18) (statute) defines renter credit income as federal adjusted gross income "increased by" four items, and the model had only (B) and (C):

  • (A) losses. "trade or business loss from a sole proprietorship, loss from a partnership, loss from a limited liability company or "subchapter S" corporation, loss from a rental property, capital loss, loss from an estate or trust, loss from a real estate mortgage investment conduit, farm rental loss, any loss associated with the sale of business property, and farm losses included in adjusted gross income". Form RCC-146 line 13 adds back "any negative amounts from federal Form 1040, Line 7 and Schedule 1, Lines 3, 4, 5, 6, and 8a" (2025 RCC-146, page 1; 2025 booklet, page 39). The model left these losses in AGI, so income ran low.
  • (D) above-the-line deductions, "to the extent excluded from federal adjusted gross income": educator expenses; business expenses of reservists, performing artists and fee-basis officials; HSA deductions; Armed Forces moving expenses; the deductible part of self-employment tax; self-employed SEP, SIMPLE and qualified plan deductions; self-employed health insurance; "the penalty for early withdrawal of savings"; alimony paid; IRA deductions; student loan interest; and tuition and fees. RCC-146 line 10 starts from Form 1040 line 9, total income before these adjustments. The model added none back.
  • (C) whose Social Security. The credit turns on "the claimant's income" (6066(b)(1), statute), and RCC-146 line 11 is 75% of the claimant's own Form 1040 line 6a minus 6b. tax_exempt_social_security sums every tax unit member, so 75% of a dependent child's survivor benefits counted as the parent's income.

What changes

Rule Change Source
(A) business, farm, rental, farm rental, partnership/S corporation, estate/trust and Form 4797 losses limited_business_loss added to vt_renter_credit_income: each head's and spouse's loss in each category, as federal AGI deducted it 6061(18)(A); RCC-146 line 13 (page 1); booklet line 13 (page 39)
(A) capital loss New helper vt_renter_credit_capital_loss_add_back adds back every capital loss deducted in AGI: the net loss on Form 1040 line 7 up to the $3,000 limit (limited_capital_loss); losses absorbed by another filer's gains or by distributions without Schedule D (capital_losses_allowed_against_gains); and, for the head and spouse, losses absorbed by the same person's other-term gains, Schedule D line 13 distributions or against a prior-year long-term carryover. Read like the business losses, "capital loss" is each loss on a sale or exchange (26 U.S.C. 1222(2), (4)); RCC-146 line 13 uses the net line 7 figure (registered) same
(D) listed deductions New parameter gov.states.vt.tax.income.credits.renter.deduction_add_backs and variable vt_renter_credit_deduction_add_back. The list holds each (D) item the model has a variable for (educator expenses, HSA, deductible SE tax, SE retirement plans, SE health insurance, early withdrawal penalty, alimony paid, IRA, student loan interest, tuition and fees). Only items on this year's federal ALD list count ("to the extent excluded"), summed over the head and spouse as above_the_line_deductions sums them, as Michigan's household resources do 6061(18)(D); RCC-146 line 10 (page 1); 2025 Schedule 1 Part II, page 2 for the line numbers
(C) the claimant's Social Security vt_renter_credit_countable_tax_exempt_ss reads filer_tax_exempt_social_security (head and spouse) instead of tax_exempt_social_security 6066(b)(1); RCC-146 line 11 (page 1)

The 2021 RCC-146 has the same lines 10 to 14, and (18) took effect for 2021, so the change applies to every year the credit exists.

Source conflict (recorded as candidate us-vt:renter-credit-loss-add-back-netting in source_conflicts/candidates.yaml). RCC-146 line 13 adds back a negative Schedule 1 line after the items on it net: line 5 combines rental, partnership, S corporation and estate items, and line 3 combines both spouses' Schedule Cs. The statute lists each kind of loss. Under the repo's statute-first rule the model adds back each head's and spouse's loss in each category, so a $4,000 partnership loss next to $10,000 of rental income is added back (Case 7 of vt_renter_credit_income.yaml; line 13 would add nothing). The difference arises only when one return has income and a loss in categories that share a line. No KNOWN_UNMARKED line is needed: the variable's comment doesn't match the guard's patterns.

#10647 (draft) lists the Vermont renter credit as a reader to review in step 3 of its plan; this PR settles it, and #10647's diff doesn't touch Vermont. Draft #10722 edits the same formula in vt_renter_credit_countable_tax_exempt_ss.py to add tier 1 railroad benefits; whichever merges second keeps both (filer_tax_exempt_social_security plus the railroad term).

Who is affected

Vermont renters who claim the renter credit (Form RCC-146). Only vt_renter_credit moves; no Vermont income tax variable reads it, and it reaches household benefits and SPM resources through state_property_tax_refunds. Income rises, and the credit falls or ends, for claimants with business, farm, rental, pass-through or capital losses, or with self-employment tax, IRA, HSA, student loan interest, alimony, educator or early withdrawal deductions. Every self-employed claimant with net earnings of $400 or more has the deductible half of self-employment tax. Income falls, and the credit rises, for a claimant whose dependent child or other dependent receives Social Security.

Tests

Moved from #10812 (vt_renter_credit_income_audit.yaml) to the new vt_renter_credit_income.yaml, values unchanged: Case 1 early withdrawal penalty (30,000), Case 2 business loss (30,000), Case 3 capital loss above the limit (30,000; the carryover is not added back), Case 4 dependent child's Social Security (20,000).

Added, with arithmetic in each comment:

  • vt_renter_credit_income.yaml Cases 5-10: capital loss exactly at the $3,000 limit (30,000); capital gain distributions offset by a capital loss (32,000: the loss they absorbed is added back too); partnership loss offset by rental income (40,000); deductible self-employment tax (20,000); IRA and student loan interest (30,000); a dependent's own early withdrawal penalty not added back (30,000).
  • Cases 11-16, all from review: a short-term loss against the same person's long-term gain (32,000); Schedule D line 13 distributions (32,000); a prior-year long-term carryover absorbed by the same person's gain (38,000); a netted loss above the limit, whose carryover is not added back (32,000); a dependent's netted loss, excluded (30,000); net capital_gains entered directly plus a carryover (32,000).
  • vt_renter_credit_countable_tax_exempt_ss.yaml Test 3: a parent's 2,000 counts (1,500), the dependent child's 8,000 doesn't.
  • vt_renter_credit.yaml, four end-to-end Addison 2025 households: a 2,000 business loss moves a claimant from the full 1,324 into the phase-out (1,250); with the add-back, income exactly at the 24,400 full credit limit (1,324) and 50 above it (1,322, AGI alone gave 1,324); income exactly at the 52,850 partial credit limit (0, AGI alone gave 23).

Existing tests changed: inputs only, no expected value. vt_renter_credit_countable_tax_exempt_ss.yaml Tests 1 and 2 entered tax_exempt_social_security directly, which the formula no longer reads; they now enter filer_tax_exempt_social_security with the same amounts (75 and 0).

Not in this PR

  • Non-filers on SSI: the booklet (page 39) has a claimant who filed no Form 1040 include SSI on line 11; the statute's 26 U.S.C. 86(d) benefits exclude it. The audit lists this as two readings.
  • Tier 1 railroad benefits in the 75% base: draft Count railroad benefits in state tax worksheets, income tests and limits as each state's law does #10722.
  • A dependent's tax-exempt interest: tax_exempt_interest_income in adds sums every member, while line 12 reads the claimant's Form 1040 line 2a. The review doesn't list this; noted here only.
  • Business expenses of reservists, performing artists and fee-basis officials, and Armed Forces moving expenses ((18)(D)): the model has no variables for them.
  • The net operating loss deduction (Schedule 1 line 8a), which line 13 adds back and (18)(A) doesn't list: the model has no federal NOL deduction.
  • The review lists no other Vermont renter credit gaps.

axiom: needed (rulespec-us has no us-vt module for 32 V.S.A. 6061(18); no encoder run was authorized for this PR)

After the review fixes, tested locally: vt_renter_credit_income.yaml (16), the Vermont credits/rent directory (970) and test_source_conflicts.py (251) pass. Before them, tested on Modal: run w1-vt-a, 239/239 passed (233 YAML files: the Vermont folder, every partner file, the changed files and the other files that read vt_renter_credit; plus 6 Python files: test_source_conflicts.py, test_reference_urls.py, test_parameter_yaml_keys.py, the two Vermont renter credit Python tests and the claimable-filer invariants). The follow-up commit only adds this PR's link to the candidate; test_source_conflicts.py passed on it in run w1-vt-b (251 passed).

🤖 Generated with Claude Code

@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.45455% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.96%. Comparing base (8999568) to head (3d9360b).
⚠️ Report is 290 commits behind head on main.

Files with missing lines Patch % Lines
...s/renter/vt_renter_credit_capital_loss_add_back.py 92.59% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##              main   #11178      +/-   ##
===========================================
- Coverage   100.00%   96.96%   -3.04%     
===========================================
  Files            1        4       +3     
  Lines           24       66      +42     
  Branches         0        1       +1     
===========================================
+ Hits            24       64      +40     
- Misses           0        1       +1     
- Partials         0        1       +1     
Flag Coverage Δ
unittests 96.96% <95.45%> (-3.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@DTrim99
DTrim99 requested a review from hua7450 November 20, 2026 00:13

@hua7450 hua7450 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, David. Adding back each kind of business, rental and partnership loss separately follows 32 V.S.A. 6061(18)(A). (18) opens "Notwithstanding subdivisions (4) and (5)" and, unlike (5)(A), allows no netting. The candidate entry quotes the statute, RCC-146 line 13 and the booklet accurately, and Case 7 is right. The deduction add-backs are filtered against the same federal list AGI uses, so nothing is counted twice, and the hand-checked values match. One fix before I approve.

Before merge

  1. Capital losses follow the form while the other losses follow the statute. The formula adds back only limited_capital_loss, the net loss on Form 1040 line 7, as RCC-146 line 13 and the 2025 booklet do. (18)(A) lists "capital loss" without defining it. In the federal code, a capital loss is each loss on a sale or exchange (26 U.S.C. 1222(2), (4)), and "net capital loss" is a separate term (1222(10)). Read the same way as the business losses, the statute adds back every capital loss deducted in AGI, so Case 6 would be 32,000 instead of 30,000. The candidate entry says the model follows the statute for "a Form 1040 or Schedule 1 line", which isn't true for line 7. Please do one of these:
    • add capital_losses_allowed_against_gains to the add-back, so capital losses follow the statute like the rest (my preference, since it matches the PR's own reading); or
    • keep the net figure and extend the candidate entry to say line 7 follows the form, and why.

Optional

  • A dependent's tax-exempt interest (follow-up). tax_exempt_interest_income in adds still sums dependents. RCC-146 line 12 reads the claimant's own Form 1040 line 2a, the same reasoning the PR applies to Social Security. This was already true on main and the PR body discloses it, so a follow-up is fine. If you prefer, summing it over the head and spouse here is one line.
  • #page=1 on RCC-146. It is a one-page PDF, so repo style drops the fragment.
  • Joint-return case. Every new case is a single filer or a filer with a dependent. One married case would pin that a spouse's loss, deductions and Social Security count while a dependent's don't.

@DTrim99
DTrim99 force-pushed the vt-renter-credit-income branch from ff0618b to b84ccf1 Compare November 20, 2026 21:24
@DTrim99

DTrim99 commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks, Ziming. Fixed in b84ccf1, rebased on main. I took your preferred option.

Fixed (your "Before merge" item)

  1. Capital losses now follow the statute like the other losses.
    • vt_renter_credit_income adds back capital_losses_allowed_against_gains next to limited_capital_loss. Together with limited_business_loss, the three add-backs equal loss_ald, the loss deduction federal AGI takes. So every capital loss deducted in AGI comes back under 32 V.S.A. 6061(18)(A), with no overlap: limited_capital_loss is only the part not already used against gains.
    • A carryover beyond the $3,000 limit is not added back, and dependents are treated the same as in the other add-backs.
    • Case 6 is now 32,000 with the same inputs:
      • AGI is 28,000.
      • 2,000 of losses were used against gains and 2,000 is the limited net loss, so 28,000 + 2,000 + 2,000 = 32,000.
    • The us-vt:renter-credit-loss-add-back-netting entry now says capital losses follow the statute too: each loss under 26 U.S.C. 1222(2) and (4), as distinct from the 1222(10) term. It also notes that RCC-146 line 13 and the 2025 booklet use the net line 7 figure. Cases 6 and 7 pin it.

Skipped (optional, not in this round): a dependent's tax-exempt interest (follow-up), #page=1 on RCC-146, and a joint-return case.

Verification:

  • The Vermont renter credit directory (964), the source-conflict tests and the renter credit amount tests pass locally.
  • An independent check ran four edge cases through the model: no gains, gains above losses, a loss above the limit with a carryover, and a dependent's loss. All four came out as described above.

@DTrim99
DTrim99 requested a review from hua7450 November 20, 2026 21:25

@hua7450 hua7450 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, David. Adding back capital_losses_allowed_against_gains next to limited_capital_loss does what you describe. With limited_business_loss, the three add-backs equal loss_ald with no overlap; a carryover above the limit stays out, and dependents are excluded. Case 6 is 32,000 by hand, and the cross-spouse case now adds back the full loss. One gap left before I approve.

Before merge

  1. A loss netted against the same person's gain is still not added back. The new term catches losses netted against gains outside a person's capital_gains: the spouse's gains, or distributions without Schedule D. It misses netting inside one person's capital_gains, which adds short_term_capital_gains and long_term_capital_gains together.

    We ran one diagnostic: a 2025 single filer with 30,000 of wages, a 4,000 capital loss and a 2,000 gain, entered four equivalent ways. Federal AGI is 28,000 each time. Case 6's layout and the joint layout give 32,000. A short-term loss against the filer's own long-term gain gives 30,000, and so do distributions entered on Schedule D line 13. The new register note says these "cannot be separated", but the holding periods are separate inputs. At the prior head all four gave 30,000, so the fix introduced the split. In Addison, each such dollar is worth about $0.047 of credit.

    Please either:

    • add the within-person offset for the head and spouse, so every capital loss included in AGI comes back as the entry says (my preference; Montana's mt_elderly_homeowner_or_renter_credit_gross_household_income.py already splits short-term from long-term and handles the carryover); or
    • keep the netting and correct the comment and register note to say that losses netted inside one person's capital_gains follow the RCC-146 net figure.

    Either way, please add a case with a short-term loss and the same person's long-term gain.

Optional

  • PR body. It still says losses netted against gains aren't added back and that Case 6 is 30,000.
  • Reforms. Unlike the deduction add-back, the loss add-back isn't limited to what federal AGI actually deducted, so a reform that removes loss_ald would overstate income. The baseline is unaffected.
  • From the first round, still open: a dependent's tax-exempt interest, #page=1 on RCC-146, and a joint-return case.

DTrim99 and others added 4 commits November 20, 2026 20:53
32 V.S.A. 6061(18) defines renter credit income as federal AGI increased by
the business, rental, farm and capital losses AGI deducted (A) and the listed
above-the-line deductions (D). Neither was added back. The 75% Social Security
term now reads only the claimant's and spouse's nontaxable benefits, as
6066(b)(1) and Form RCC-146 line 11 do, not a dependent's.

Moves the four Vermont renter credit cases from the #10812 audit into the
variable's test file and records the line 13 netting question as a
source-conflict candidate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… in Vermont renter credit income

Add capital_losses_allowed_against_gains to the vt_renter_credit_income
add-backs next to limited_capital_loss, so both capital loss parts that
federal AGI deducts are restored. Update test Case 6 to assert both
capital terms, and update the renter-credit-loss-add-back-netting
source-conflict candidate note and example to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er's gains in Vermont renter credit income

Vermont renter credit household income now adds back capital losses that
were netted against the same person's capital gains, including the
prior-year long-term loss carryover absorbed by that person's gain.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DTrim99
DTrim99 force-pushed the vt-renter-credit-income branch 2 times, most recently from b84ccf1 to 3d9360b Compare November 21, 2026 01:55
@DTrim99

DTrim99 commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks, Ziming. Fixed in 3d9360b, rebased on main. I took your preferred option and updated the PR body to match.

Fixed (your "Before merge" item)

  1. A capital loss netted against the same person's gain now comes back.
    • New helper. The tax-unit helper vt_renter_credit_capital_loss_add_back replaces the two capital terms in vt_renter_credit_income. It adds:

      • capital_losses_allowed_against_gains: losses absorbed by another filer's gains or by distributions without Schedule D.
      • limited_capital_loss: the net loss up to the limit.
      • For the head and spouse, the loss absorbed by their own gains. As in Montana's mt_elderly_homeowner_or_renter_credit_gross_household_income, it compares the short-term part, long-term sales, Schedule D line 13 distributions and the prior-year long-term carryover.
    • Exactness. A person's capital_losses is already net of what their own gains absorbed, so the three parts don't overlap. The total equals the capital losses AGI deducted. A carryover above the limit stays out, and dependents are excluded.

    • Your diagnostic now agrees across layouts. All four entries of the 2025 single filer (30,000 wages, a 4,000 loss, a 2,000 gain) give 32,000 against federal AGI of 28,000. At the previous head, two gave 30,000.

    • One addition beyond what you asked. A prior-year long-term carryover absorbed by the same person's gain is added back too. 26 U.S.C. 1212(b) treats it as a current-year capital loss, and the model already added it back when it shows up in the net or offsets a spouse's gain. Without it, the result would again depend on how the return is entered. Case 13 pins it at 38,000. Say if you'd rather leave it out.

    • New Cases 11-16:

      • a short-term loss against the same person's long-term gain, 32,000;
      • line 13 distributions, 32,000;
      • the absorbed carryover, 38,000;
      • a netted loss above the limit, 32,000, with the carryover not added back;
      • a dependent's netted loss, 30,000;
      • net capital_gains entered directly plus a carryover, 32,000.

      Cases 1-10 are unchanged.

    • Comment and register note. Both now say these losses are added back. "Cannot be separated" now covers only losses inside one input: two sales in one holding period, or a short-term carryover inside the short-term input.

Skipped (optional, not in this round):

  • limiting the loss add-back to what loss_ald deducts under a reform (the baseline is unaffected);
  • a dependent's tax-exempt interest;
  • #page=1 on RCC-146;
  • a joint-return case.

Verification:

  • vt_renter_credit_income.yaml (16), the Vermont credits/rent directory (970) and the source-conflict tests (251) pass locally.
  • An independent check ran 18 households through the model: your four layouts, joint returns with netting within and across spouses, losses above the limit, a dependent, and zero-capital units (helper exactly 0). In each, the helper equals the capital losses AGI deducted.

@DTrim99
DTrim99 requested a review from hua7450 November 21, 2026 01:56

@hua7450 hua7450 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, David. vt_renter_credit_capital_loss_add_back now adds back the loss netted inside one filer, and the diagnostic gives 32,000 for all four layouts from last round, including the same person's short-term loss against their own long-term gain and Schedule D line 13 distributions. It doesn't overlap capital_losses_allowed_against_gains or limited_capital_loss; losses above the cap stay out, and dependents are excluded. Cases 11-16 check by hand, and the register note and PR body match the code. Approving.

codecov/patch is failing on this head (other checks were still running when I looked), so it will need a look before merge.

Optional:

  • Mixed inputs. A joint return where one spouse enters capital_gains directly and the other enters the short- and long-term parts adds back a loss AGI never saw (32,000 instead of 30,000). Montana's sibling formula guards that case.
  • Reforms. The capital and business add-backs still don't check that loss_ald is deducted in AGI.
  • From the first round, still open: a dependent's tax-exempt interest, #page=1 on RCC-146, and a joint-return case.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants