### Meets Young Parent Payment single person requirements from section 165

Social Security Boolean MONTH Person Formula Included used 1 time

Value type Boolean . Default value false 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 social_security__meets_young_parent_payment_single_persons_requirements

### 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):
sixteen_or_seventeen = (persons('age', period.start) >= 16) * (persons('age', period.start) < 18)
eighteen_or_nineteen = (persons('age', period.start) >= 18) * (persons('age', period.start) < 20)

living_with_parent_or_guardian = persons('living_with_parent_or_guardian', period)
financially_supported_by_parent_or_guardian = persons('financially_supported_by_parent_or_guardian', period)

family_income_under_threshold = persons('social_security__family_income_under_young_parent_payment_threshold', period)

exceptional_circumstances = persons('social_security__single_young_person_in_exceptional_circumstances', period)

section_2 = sixteen_or_seventeen * not_(living_with_parent_or_guardian) * exceptional_circumstances
section_3 = sixteen_or_seventeen * (living_with_parent_or_guardian + financially_supported_by_parent_or_guardian) * family_income_under_threshold
section_4 = eighteen_or_nineteen

# is a parent?

# TODO section_5

return (section_2 + section_3 + section_4)``````