Rapu Ture - Exploring the Rules

Eligible employee

Parental Leave Boolean MONTH Person Formula Included used 0 times

Value type Boolean . Default value false Entity person


How is this calculated?

To calculate this variable, the following input is used


Formulas

This is the formula used to calculate the value of parental_leave__eligible_employee

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):
    is_citizen = persons('is_nz_citizen', period)

    return is_citizen * persons('parental_leave__is_primary_carer', period) * \
        persons('parental_leave__applied_for_leave_or_stopped_working', period) * \
        (persons('parental_leave__threshold_tests', period) >= 6) * \
        not_(persons('parental_leave__had_previous_parental_leave_in_last_six_months', period))

Scenarios calculating this variables