Has lived continuously in New Zealand for 2 years or more at any one time since becoming a New Zealand citizen or permanent resident?Sole Parent Support Boolean MONTH Person Formula Included used 1 time
Value type Boolean . Default value true Entity person
How is this calculated?
To calculate this variable, the following input is used
- Int number_of_years_lived_in_nz Number of years lived in NZ
Where is this used?
This variable is referred to by these other variables in their own calculations
- Boolean social_security__eligible_for_sole_parent_support Eligible for Sole Parent Support
This is the formula used to calculate the value of sole_parent_support__meets_years_in_nz_requirement
This formula is used for scenarios from the date 0001-01-01 onwards. More info on formulas
def formula(persons, period, parameters): # been in NZ log enough? min_years = parameters(period).entitlements.social_security.sole_parent_support.minumum_continuous_time_in_nz years_in_nz = persons('number_of_years_lived_in_nz', period) return years_in_nz >= min_years