Rapu Ture - Exploring the Rules

Family has resident child aged 5 who will be enrolled 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_aged_5_who_will_be_enrolled_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)
    children_to_be_enrolled = families.members(
        'will_be_enrolled_in_school', period)
    aged_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 * children_to_be_enrolled * aged_5 * meets_early_childcare_hours_threshold), role=Family.CHILD)