-
Notifications
You must be signed in to change notification settings - Fork 201
Fix New Jersey gross income computation #6773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
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 Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| return add( | ||
| person, | ||
| period, |
There was a problem hiding this comment.
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 | ||
| ], | ||
| ) |
There was a problem hiding this comment.
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.
policyengine_us/variables/gov/states/nj/tax/income/adjusted_gross_income/nj_gross_income.py
Outdated
Show resolved
Hide resolved
policyengine_us/variables/gov/states/nj/tax/income/adjusted_gross_income/nj_additions.py
Outdated
Show resolved
Hide resolved
policyengine_us/parameters/gov/states/nj/tax/income/gross_income_sources.yaml
Show resolved
Hide resolved
policyengine_us/parameters/gov/states/nj/tax/income/gross_income_sources.yaml
Outdated
Show resolved
Hide resolved
policyengine_us/parameters/gov/states/nj/tax/income/additions.yaml
Outdated
Show resolved
Hide resolved
Co-authored-by: Pavel Makarchuk <[email protected]>
- 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]>
PavelMakarchuk
left a comment
There was a problem hiding this 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. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
qualified and non-qualified?
Summary
Changes
nj_total_income.pyto build income from statutory categories per NJ Statute 54A:5-1:nj_agi.yamlto use actual income componentsTest plan
nj_agi.yamlpassmake formatReferences
🤖 Generated with Claude Code