Repository navigation
Conversation
ANCHOR read the sum of every tax unit member's nj_gross_income, which keeps interest on federal obligations, amounts entered as exempt from New Jersey tax, and dependents' income. The Division bases ANCHOR on NJ-1040 line 29 (N.J.S.A. 54:4-8.58, "Gross income"), which nj_agi computes, so both nj_anchor and nj_anchor_eligible now read nj_agi. Stay NJ application income (PAS-1) summed dependents' income with the claimant's, and counted a disability pension entered as wages twice: once in nj_gross_income (line a) and again on line d. Income now covers the head and spouse only, and line a leaves out the part of the pension held in wages, so line d counts it once. Part of #10812. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11693 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 3 +2
Lines 24 66 +42
=========================================
+ Hits 24 66 +42
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #10812 (state credit income audit, Tier 2 items 11 and 12).
What was wrong
ANCHOR.
nj_anchorandnj_anchor_eligiblesummednj_gross_incomeover every tax unit member. That is New Jersey income before PolicyEngine's subtractions, so it kept interest on federal obligations and amounts entered innj_other_subtractions, and it added dependents' income. ANCHOR income is New Jersey gross income on NJ-1040 line 29:nj_agialready recognises.Stay NJ application income.
nj_property_tax_relief_income(Form PAS-1 line f) had two errors:total_disability_paymentsis documented as "also counted in employment_income or taxable_disability_benefits". When it sits inemployment_income,nj_gross_incomeholds it throughnj_wages(line a), and the formula added it again as line d. PAS-1 line d is a total and permanent disability pension received before it converts to a regular pension, and "This amount is not reported on Form NJ-1040". The NJ-1040 instructions (page 15) list "Public or private disability pension benefits until the year you turn 65" as nontaxable.What changes
nj_anchor,nj_anchor_eligible: income istax_unit("nj_agi", period), the line 29 equivalent: head and spousenj_total_income(after theus_govt_interest_personandnj_other_subtractionssubtractions, withnj_other_additions) less the retirement exclusions. References add 54:4-8.58.nj_property_tax_relief_income:nj_gross_incomeand the PAS-1 additional sources (exempt interest, nontaxable IRA distributions, Social Security) are summed withtax_unit_non_dep_add, and line d covers non-dependents only.taxable_disability_benefits, floored at zero and capped atnj_wages. Line d then adds the pension once. A pension entered asdisability_benefitswas already counted once and still is.Overlap. #11045 (New Jersey property tax caps and elections) refactors
nj_agi.pyinto a helper with the same result. This PR only readsnj_agiand touches none of #11045's files, so the two are compatible. No other open PR changes the ANCHOR or Stay NJ files.Who is affected
nj_gross_incomesum exceeded line 29 across a band edge: Treasury interest, amounts innj_other_subtractions, or dependents with income. A homeowner moves from $1,000 to $1,500 at the $150,000 edge or from $0 to $1,000 at $250,000; a renter moves from $0 to $450 ($700 at 65 or older) at $150,000.nj_other_additionsentered (income PolicyEngine otherwise omits from lines 15-26), which belongs on line 29.nj_staynjandnj_capped_senior_freeze, so a higher ANCHOR lowers those dollar for dollar where they bind.Tests
Each moved or added case was run against main (50af7fb) and this branch:
nj_anchor.yamlnj_anchor.yamlnj_anchor.yamlnj_anchor.yamlnj_anchor.yamlnj_anchor.yamlnj_anchor_eligible.yamlnj_anchor_eligible.yamlnj_anchor_eligible.yamlnj_anchor_eligible.yamlnj_property_tax_relief_income.yamlnj_property_tax_relief_income.yamlnj_property_tax_relief_income.yamlnj_property_tax_relief_income.yamlnj_property_tax_relief_income.yamlnj_property_tax_relief_income.yamlnj_anchor.yamlword for word, so it was not moved again. 401(k) deferrals are out of line 29 on main throughnj_wages(N.J.S.A. 54A:6-21), so that audit row needs no change here.nj_other_subtractions, both input conventions for the disability pension, a spouse's pension, and a dependent's non-wage income.nj_property_tax_relief_income.yamlCases 1 and 7 now enter their 3,000 disability pension asdisability_benefits: 3_000as well astotal_disability_payments. Their expected values (90,000 and 83,000) are unchanged. As written before, the pension sat inside the 80,000 of wages under the input's documented convention, so the old expected values counted it twice; on this branch the unchanged inputs give 87,000 and 80,000. The new input keeps each case's stated purpose, a pension on top of 80,000 of wages.Tested locally (policyengine-core 3.37.2, one process at a time): 1,024/1,024 passed. That is the New Jersey tax YAML folder (52 files, 483 cases, batched per subdirectory), the code-health checks for source conflicts, reference URLs and metadata, parameter keys, builtin sums and group variables in adds (416), and
test_household_spm_resource_parity.pyandtest_aggregate_list_integrity.py, which readnj_property_tax_relief(125). No partner test readsnj_anchor,nj_anchor_eligible,nj_property_tax_relief_incomeor their consumers. ruff format and check pass.Not in this PR
nj_gross_incomekeeps it throughnj_wages, although the NJ-1040 instructions treat it as nontaxable until the year the recipient turns 65. That is an NJ-1040 base change for a separate PR.nj_wages, which is the agency's reading.nj_other_additionsin Stay NJ line a. Line 27 includes them;nj_gross_incomedoes not. Small and left for a later PR.axiom: TheAxiomFoundation/rulespec-us#2933 queued
🤖 Generated with Claude Code