Rapu Ture - Exploring the Rules

Does the hours per week the person is employed for qualify them as a full time earner

Family Scheme Int MONTH Person Formula Included used 2 times

Value type Int . Default value 0 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 family_scheme__full_time_earner

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):
    has_partner = (persons('has_a_partner', period) > 0)
    hours_per_week_threshold = parameters(period).entitlements.social_security.family_scheme.hours_per_week_threshold
    hours_per_week_threshold_with_partner = parameters(period).entitlements.social_security.family_scheme.hours_per_week_threshold_with_partner

    return ((has_partner == 0) * (persons('hours_per_week_employed', period) >= hours_per_week_threshold)) +\
        ((has_partner > 0) * (persons.family.sum(persons.family.members('hours_per_week_employed', period, role=Family.PARTNER)) >= hours_per_week_threshold_with_partner))