Rapu Ture - Exploring the Rules

the spouse or partner of the biological mother

Parental Leave Boolean MONTH Person Formula Included used 2 times

Value type Boolean . Default value false 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 parental_leave__is_spouse_or_partner_of_the_biological_mother

2002-01-01

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

def formula_2002(persons, period, parameters):
    # true for people who are not the biological mother, but the biological mother is in their family with role of partner
    return persons.family('parental_leave__family_includes_biological_mother_as_partner', period) * \
        not_(persons('parental_leave__is_the_biological_mother', period))