Meets the age test for Jobseeker Support?
Jobseeker Support Boolean MONTH Person Formula Included used 1 timeValue type Boolean . Default value true Entity person
How is this calculated?
To calculate this variable, the following input is used
- Int age The age of a Person (in years)
- Date date_of_birth Birth date
- Boolean social_security__has_dependant_child has a dependent child (or children)
Where is this used?
This variable is referred to by these other variables in their own calculations
- Boolean social_security__eligible_for_jobseeker_support Eligible for Job Seeker Support
Formulas
This is the formula used to calculate the value of jobseeker_support__meets_age_threshold
0001-01-01
This formula is used for scenarios from the date 0001-01-01 onwards. More info on formulas
def formula(persons, period, parameters):
# over the simpler age threshold
jobseeker_age = parameters(period).entitlements.social_security.jobseeker_support.age_threshold
over_age_threshold = persons('age', period.start) >= jobseeker_age
# over the threshold for appliants with a dependent child
jobseeker_age_with_dependent_child = parameters(period).entitlements.social_security.jobseeker_support.age_threshold_with_dependent_child
has_dependent_child = persons('social_security__has_dependant_child', period)
over_age_threshold_with_dependent_child = (persons('age', period.start) >= jobseeker_age_with_dependent_child) * has_dependent_child
return over_age_threshold + over_age_threshold_with_dependent_child