Rapu Ture - Exploring the Rules

Does the family have a child who meets the criteria for disabled

Disability Allowance Boolean MONTH Family Formula Included used 2 times

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 disability_allowance__family_has_eligible_child


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

def formula(families, period, parameters):
    has_disability = families.members('social_security__child_meets_child_disability_allowance_criteria', period)
    child_age_threshold = parameters(period).entitlements.social_security.child_disability_allowance.child_age_threshold
    children = families.members('age', period.start) <= child_age_threshold
    disabled_children = has_disability * children
    return families.any(disabled_children, role=Family.CHILD)