Skip to content

Commit

Permalink
add Denver Emergency Addistance
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebPena committed May 29, 2024
1 parent a947aa5 commit 964b32d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions programs/programs/urgent_needs/urgent_need_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,3 +373,20 @@ def eligible(cls, screen: Screen):
county_eligible = screen.county in cls.counties

return age_eligible and county_eligible


class DenverEmergencyAssistance(UrgentNeedFunction):
dependencies = ["county", "income_amount", "income_frequency", "household_size"]
county = "Denver County"
fpl_percent = 4

@classmethod
def eligible(cls, screen: Screen):
"""
Return True if the household is bellow 400% fpl and lives in Denver
"""
county_eligible = screen.county == cls.county
fpl = FederalPoveryLimit.objects.get(year="THIS YEAR").as_dict()
income_eligible = screen.calc_gross_income("yearly", ["all"]) < fpl[screen.household_size] * cls.fpl_percent

return county_eligible and income_eligible
1 change: 1 addition & 0 deletions screener/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ def urgent_need_results(screen):
"ecmh": urgent_need_functions.EarlyChildhoodMentalHealthSupport.calc(screen, missing_dependencies),
"hippy": urgent_need_functions.ParentsOfPreschoolYoungsters.calc(screen, missing_dependencies),
"pat": urgent_need_functions.ParentsAsTeacher.calc(screen, missing_dependencies),
"deap": urgent_need_functions.DenverEmergencyAssistance.calc(screen, missing_dependencies),
}

list_of_needs = []
Expand Down

0 comments on commit 964b32d

Please sign in to comment.