Rapu Ture - Exploring the Rules

Family has a resident child who is under 5 years old, not in school and in minimum childcare hours per week

Social Security Regulation Boolean MONTH Family Formula Included used 1 time

Value type Boolean . Default value false Entity family

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


This is the formula used to calculate the value of social_security_regulation__family_has_resident_child_under_5_not_in_school


This formula is used for scenarios from the date 0001-01-01 onwards. More info on formulas

def formula(families, period, parameters):
    minimum_hours_participating = parameters(period).entitlements.social_security.childcare_subsidy.minimum_hours_in_childcare

    dependent_children = families.members(
        'social_security__is_dependent_child', period)
    not_in_school = not_(families.members(
        'is_attending_school', period))
    under_5 = families.members('age', period.start) < 5
    citizens_and_residents = families.members(
        'is_citizen_or_resident', period)
    meets_early_childcare_hours_threshold = families.members('early_childcare_hours_participation_per_week', period) >= minimum_hours_participating
    return families.any((dependent_children * citizens_and_residents * not_in_school * under_5 * meets_early_childcare_hours_threshold), role=Family.CHILD)