Is each family classified as eligible for best start tax creditBest Start Boolean MONTH Family Formula Included used 1 time
Value type Boolean . Default value false Entity family
How is this calculated?
To calculate this variable, the following input is used
- Int age_of_youngest The age of the youngest member of a family
- Date date_of_birth Birth date
- Date due_date_of_birth Birth due date
Where is this used?
This variable is referred to by these other variables in their own calculations
- Boolean best_start__eligibility Is each person classified as eligible for best start tax credit
This is the formula used to calculate the value of best_start__family_has_children_eligible
This formula is used for scenarios from the date 0001-01-01 onwards. More info on formulas
def formula(families, period, parameters): families_have_children_born_after_launch_date = families.max( families.members('date_of_birth', period) >= datetime64('2018-07-01')) families_have_children_due_after_launch_date = families.max( families.members('due_date_of_birth', period) >= datetime64('2018-07-01')) # NOTE: using the age at the start of the month # Age changes on a DAY, but this calculation only has a granularity of MONTH families_have_children_younger_than_three_years = families( 'age_of_youngest', period.start) < 3 return ((families_have_children_born_after_launch_date + families_have_children_due_after_launch_date) > 0) * \ families_have_children_younger_than_three_years