Rapu Ture - Exploring the Rules

Is primary carer, as per Parental Leave and Employment Protection Act 1987

Parental Leave Boolean MONTH Person Formula Included used 1 time

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


This is the formula used to calculate the value of parental_leave__is_primary_carer


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

def formula_2002(persons, period, parameters):
    biological_mother = persons('parental_leave__is_the_biological_mother', period)

    her_spouse = persons('parental_leave__is_spouse_or_partner_of_the_biological_mother', period)
    received_transferred_entitlement = persons('parental_leave__has_spouse_who_transferred_her_entitlement', period)

    other = persons('parental_leave__a_person_other_than_biological_mother_or_her_spouse', period)
    permanent = persons('parental_leave__taking_permanent_primary_responsibility_for_child', period)

    # Mark who is the principal caregiver, as there may be >1 eligible
    # PPL Section 7 (2)
    nominated = persons.has_role(Family.PRINCIPAL_CAREGIVER)

    return nominated * (biological_mother + (her_spouse * received_transferred_entitlement) + (other * permanent))