Rapu Ture - Exploring the Rules

Meets the age test for Jobseeker Support?

Jobseeker Support Boolean MONTH Person Formula Included used 1 time

Value type Boolean . Default value true Entity person


How is this calculated?

To calculate this variable, the following input is used


Where is this used?

This variable is referred to by these other variables in their own calculations


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