Rapu Ture - Exploring the Rules

was present in New Zealand and entitled to indefinite stay

Int DAY 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 was_present_in_nz_and_entitled_to_indefinite_stay

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):
    present = persons('present_in_new_zealand', period)
    entitled = persons('immigration__entitled_to_indefinite_stay', period)
    return present * entitled

Scenarios calculating this variables