Rapu Ture - Exploring the Rules

Family has a child under 6 years old and eligible for Disability Allowance 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


Formulas

This is the formula used to calculate the value of social_security_regulation__family_has_child_eligible_for_disability_allowance_child_under_6

0001-01-01

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)
    eligible_children = families(
        'disability_allowance__family_has_eligible_child', period)
    under_6 = families.members('age', period) < 6
    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 * eligible_children * under_6 * meets_early_childcare_hours_threshold), role=Family.CHILD)