Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: minor
changes:
added:
- New Jersey TANF income eligibility.
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
- name: Household with no income is eligible. (0+0<1)
period: 2023
input:
state_code: NJ
nj_tanf_maximum_allowable_income: 1
nj_tanf_countable_earned_income: 0
nj_tanf_countable_gross_unearned_income: 0
output:
nj_tanf_income_eligible: true


- name: Household with income exceeding maximum allowable income is ineligible. (1+1>1)
period: 2023
input:
state_code: NJ
nj_tanf_maximum_allowable_income: 1
nj_tanf_countable_earned_income: 1
nj_tanf_countable_gross_unearned_income: 1
output:
nj_tanf_income_eligible: false


- name: Household with income equals maximum allowable income is eligible. (1+0=1)
period: 2023
input:
state_code: NJ
nj_tanf_maximum_allowable_income: 1
nj_tanf_countable_earned_income: 1
nj_tanf_countable_gross_unearned_income: 0
output:
nj_tanf_income_eligible: true

- name: Household with income equals maximum allowable income and income equals maximum benefit is ineligible.
period: 2023
input:
state_code: NJ
nj_tanf_maximum_allowable_income: 1
nj_tanf_maximum_benefit: 1
nj_tanf_countable_earned_income: 1
nj_tanf_countable_gross_unearned_income: 0
output:
nj_tanf_income_eligible: false


- name: Household with income less than maximum allowable income and income less than maximum benefit is eligible.
period: 2023
input:
state_code: NJ
nj_tanf_maximum_allowable_income: 3
nj_tanf_maximum_benefit: 2
nj_tanf_countable_earned_income: 1
nj_tanf_countable_gross_unearned_income: 0
output:
nj_tanf_income_eligible: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
from policyengine_us.model_api import *


class nj_tanf_income_eligible(Variable):
value_type = bool
entity = SPMUnit
label = "New Jersey TANF income eligible"
definition_period = YEAR
defined_for = StateCode.NJ

def formula(spm_unit, period, parameters):
income = add(
spm_unit,
period,
[
"nj_tanf_countable_earned_income",
"nj_tanf_countable_gross_unearned_income",
],
)
maximum_allowable_income = spm_unit(
"nj_tanf_maximum_allowable_income", period
)
maximum_benefit = spm_unit("nj_tanf_maximum_benefit", period)
# New Jersey Administrative Code 10:90-3.1
return (income <= maximum_allowable_income) & (
income < maximum_benefit
)