eligibily for Student Allowance basic grant
Student Allowance Boolean MONTH Person Formula Included used 0 timesValue type Boolean . Default value false Entity person
How is this calculated?
To calculate this variable, the following input is used
- Int age The age of a Person (in years)
- Date date_of_birth Birth date
- Boolean student_allowance__eligible_for_certain_allowances Eligible to certain allowances under Student Allowance Regulations
- Int age The age of a Person (in years)
- Date date_of_birth Birth date
- Boolean immigration__is_protected_person is recognised as a a protected person in New Zealand
- Boolean immigration__is_recognised_refugee is recognised as a refugee
- Boolean is_nz_citizen New Zealand citizen means a person who has New Zealand citizenship as provided in the Citizenship Act 1977 or the Citizenship (Western Samoa) Act 1982
- Int number_of_years_lived_in_nz Number of years lived in NZ
- Boolean social_security__is_ordinarily_resident_in_new_zealand is ordinarily resident in New Zealand
- Boolean student_allowance__approved_to_study_overseas is approved to study overseas under regulation 26
- Boolean student_allowance__approved_to_study_parttime is approved to study in a part-time course under regulation 12A.
- Boolean student_allowance__is_enrolled_fulltime is enrolled in a full-time course at a tertiary provider or secondary school
- Boolean student_allowance__meets_attendance_and_performance_requirements meets the attendance and performance requirements of that provider or school for tuition
- Boolean student_allowance__has_a_supported_child has a supported child as per Student Allowances Regulations 1998
- Boolean student_allowance__is_married_or_partnered married or partnered as per Student Allowances Regulations 1998
- Boolean student_allowance__has_a_spouse Has spouse as per Student Allowances Regulations 1998
- Int age The age of a Person (in years)
- Date date_of_birth Birth date
- Int age_of_partner The age of partner in a family
- Int age The age of a Person (in years)
- Date date_of_birth Birth date
- Boolean student_allowance__has_a_supported_child has a supported child as per Student Allowances Regulations 1998
- Boolean student_allowance__partner_has_a_supported_child their spouse has a supported child, as per Student Allowances Regulations 1998
- Boolean student_allowance__is_secondary_student is a secondary student
- Boolean student_allowance__is_tertiary_student is a tertiary student
- Boolean student_allowance__partner_or_person_receiving_certain_allowances Student not eligible for certain allowances where student or spouse or partner receiving social security payments, New Zealand superannuation, or veteran’s pension
Formulas
This is the formula used to calculate the value of student_allowance__eligible_for_basic_grant
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):
has_children = persons('student_allowance__has_a_supported_child', period)
is_secondary_student = persons('student_allowance__is_secondary_student', period)
is_tertiary_student = persons('student_allowance__is_tertiary_student', period)
# NOTE: using the age at the start of the month
# Age changes on a DAY, but this calculation only has a granularity of MONTH
is_or_over_16 = persons('age', period.start) >= 16
is_under_18 = persons('age', period.start) < 18
is_or_over_18 = persons('age', period.start) >= 18
is_married_or_partnered = persons('student_allowance__is_married_or_partnered', period)
criteria_a = is_secondary_student * is_or_over_16 * is_under_18 * is_married_or_partnered * has_children
criteria_b = is_tertiary_student * is_or_over_16 * is_under_18 * has_children
criteria_c = (is_secondary_student + is_tertiary_student) * is_or_over_18
student_allowance__eligible_for_certain_allowances = persons('student_allowance__eligible_for_certain_allowances', period)
partner_or_person_receives_certain_allowances = invert(persons('student_allowance__partner_or_person_receiving_certain_allowances', period))
return (criteria_a + criteria_b + criteria_c) * student_allowance__eligible_for_certain_allowances * partner_or_person_receives_certain_allowances