Skip to content

Conversation

@DTrim99
Copy link
Collaborator

@DTrim99 DTrim99 commented Nov 4, 2025

Summary

  • Fixes New Jersey gross income calculation to comply with NJ Statute 54A:5-1
  • Changes NJ total income to build from specific income categories instead of starting from federal AGI
  • This ensures NJ taxable income properly includes amounts deducted as federal above-the-line deductions

Changes

  • Updated nj_total_income.py to build income from statutory categories per NJ Statute 54A:5-1:
    • Employment income (wages, salaries, tips)
    • Interest, dividends
    • Business income (self-employment, farm, partnership/S-corp)
    • Capital gains (long-term and short-term)
    • Retirement income (pensions, IRA distributions)
    • Rental income, gambling winnings, alimony, miscellaneous
  • Updated tests in nj_agi.yaml to use actual income components

Test plan

  • All 5 tests in nj_agi.yaml pass
  • Code formatted with make format

References

🤖 Generated with Claude Code

NJ gross income now correctly builds from statutory income categories
per NJ Statute 54A:5-1, rather than starting from federal AGI.
This ensures NJ taxable income properly includes amounts deducted as
federal above-the-line deductions (IRA contributions, student loan
interest, etc.).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@codecov
Copy link

codecov bot commented Nov 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (c15afbe) to head (5d65a75).
⚠️ Report is 42 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##           master     #6773       +/-   ##
============================================
+ Coverage   74.69%   100.00%   +25.30%     
============================================
  Files        3249         3     -3246     
  Lines       46803        37    -46766     
  Branches      242         0      -242     
============================================
- Hits        34959        37    -34922     
+ Misses      11807         0    -11807     
+ Partials       37         0       -37     
Flag Coverage Δ
unittests 100.00% <100.00%> (+25.30%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 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.

Comment on lines 20 to 22
return add(
person,
period,
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we make this a list parameter with the same comments?

"alimony_income", # Line 25: Alimony received (Category n)
"miscellaneous_income", # Line 26: Other income
],
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should still have additions and subtractions. We need a total nj gross income concept and total income is gross income plus additions less subtractions.

DTrim99 and others added 3 commits November 12, 2025 10:06
- Remove specific statute references from descriptions
- Add period metadata to both parameter files

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Copy link
Collaborator

@PavelMakarchuk PavelMakarchuk left a comment

Choose a reason for hiding this comment

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

Some clarifying questions

@@ -0,0 +1,12 @@
description: New Jersey additions to gross income. These are amounts added back to gross income that may have been excluded or deducted for federal purposes.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
description: New Jersey additions to gross income. These are amounts added back to gross income that may have been excluded or deducted for federal purposes.
description: New Jersey counts these sources as additions to gross income.

metadata:
unit: list
period: year
label: New Jersey additions to gross income
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
label: New Jersey additions to gross income
label: New Jersey gross income additions

@@ -0,0 +1,26 @@
description: New Jersey income sources that comprise gross income.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
description: New Jersey income sources that comprise gross income.
description: New Jersey counts the following sources as gross income.

href: https://www.nj.gov/treasury/taxation/pdf/current/1040.pdf
values:
2021-01-01:
- employment_income # Line 15: Wages, salaries, tips (Category a)
Copy link
Collaborator

Choose a reason for hiding this comment

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

irs_employment_income -? Not 100% sure

2021-01-01:
- employment_income # Line 15: Wages, salaries, tips (Category a)
- taxable_interest_income # Line 16a: Interest (Category e)
- dividend_income # Line 17: Dividends (Category f)
Copy link
Collaborator

Choose a reason for hiding this comment

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

qualified and non-qualified?

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.

New Jersey gross income composition

2 participants