Rapu Ture - Exploring the Rules

Eligible for Sole Parent Support

Social Security 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 social_security__eligible_for_sole_parent_support

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):
    # The applicant
    resides_in_nz = persons('social_security__meets_residential_requirements_for_certain_benefits', period)
    resident_or_citizen = persons('is_citizen_or_resident', period)

    years_in_nz = persons('sole_parent_support__meets_years_in_nz_requirement', period)
    age_requirement = persons('sole_parent_support__meets_age_threshold', period)
    child_age_requirement = persons.family('sole_parent_support__family_has_child_under_age_limit', period)

    relationship_test = persons('sole_parent_support__meets_relationship_qualification', period)
    # TODO isInadequatelySupportedByPartner
    # TODO isMaintainingChild

    # income low enough?
    low_income = persons('sole_parent_support__below_income_threshold', period)

    return resides_in_nz * resident_or_citizen * years_in_nz *\
        age_requirement * child_age_requirement * \
        relationship_test * low_income