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:
- Added New Jersey TANF demographic eligibility
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
- name: "Is eligible for TANF due to children under 18"
period: 2022
input:
age: 17
output:
Comment on lines +3 to +5
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 add is_full_time_student: false so that each test contains both the formula inputs

nj_is_person_demographic_tanf_eligible: true

- name: "18-year-old out of school is not eligible for TANF"
period: 2022
input:
age: 18
is_full_time_student: false
output:
nj_is_person_demographic_tanf_eligible: false

- name: "Is eligible for TANF due to being an 18-year-old in school"
period: 2022
input:
age: 18
is_full_time_student: true
output:
nj_is_person_demographic_tanf_eligible: true

- name: "Is not eligible for TANF due to being an 19-year-old in school"
period: 2022
input:
age: 19
is_full_time_student: true
output:
nj_is_person_demographic_tanf_eligible: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from policyengine_us.model_api import *


class nj_is_demographic_tanf_eligible(Variable):
value_type = bool
entity = SPMUnit
definition_period = YEAR
label = "Demographic eligibility for New Jersey TANF"
documentation = "Whether any person in a family applying for the Temporary Assistance for Needy Families program meets demographic requirements."
adds = ["nj_is_person_demographic_tanf_eligible"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from policyengine_us.model_api import *


class nj_is_person_demographic_tanf_eligible(Variable):
value_type = bool
entity = Person
definition_period = YEAR
label = "Person-level eligibility for New Jersey TANF based on age."
documentation = "Whether a person in a family applying for the Temporary Assistance for Needy Families program meets demographic requirements."

def formula(person, period, parameters):
# title: State Plan for New Jersey TANF, 2021-2023, page 14
# href: https://www.nj.gov/humanservices/dfd/programs/workfirstnj/tanf_2021_23_st_plan.pdf#page=14
# title: New Jersey Administrative Code, 10:90-2.2, part (c)(d)
# href: https://advance.lexis.com/documentpage/?pdmfid=1000516&crid=f96f6864-3540-4a08-b41a-e523b7c5620a&nodeid=AAOAERAADAAC&nodepath=%2FROOT%2FAAO%2FAAOAER%2FAAOAERAAD%2FAAOAERAADAAC&level=4&haschildren=&populated=false&title=%C2%A7+10%3A90-2.2+WFNJ+TANF%2FGA+eligibility+requirements&config=00JAA1YTg5OGJlYi04MTI4LTRlNjQtYTc4Yi03NTQxN2E5NmE0ZjQKAFBvZENhdGFsb2ftaXPxZTR7bRPtX1Jok9kz&pddocfullpath=%2Fshared%2Fdocument%2Fadministrative-codes%2Furn%3AcontentItem%3A5XKV-PWF1-JKHB-61RG-00008-00&ecomp=8gf5kkk&prid=2fb77114-6c52-4b07-8969-f267ef81db7b
child_under_18 = person("age", period) < 18
is_under_19 = person("age", period) < 19
Comment on lines +16 to +17
Copy link
Collaborator

Choose a reason for hiding this comment

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

It would give us more flexibility if we made these ages (18 and 19) parameters like child_age_eligible and student_age_eligible

full_time_student = person("is_full_time_student", period)
school_enrolled_under_19_year_old = full_time_student & is_under_19
return child_under_18 | school_enrolled_under_19_year_old