diff --git a/changelog_entry.yaml b/changelog_entry.yaml index e69de29bb..78dae96be 100644 --- a/changelog_entry.yaml +++ b/changelog_entry.yaml @@ -0,0 +1,4 @@ +- bump: minor + changes: + added: + - Child minimum age for basic income. diff --git a/policyengine_uk/parameters/gov/contrib/ubi_center/basic_income/amount/child_min_age.yaml b/policyengine_uk/parameters/gov/contrib/ubi_center/basic_income/amount/child_min_age.yaml new file mode 100644 index 000000000..708172e92 --- /dev/null +++ b/policyengine_uk/parameters/gov/contrib/ubi_center/basic_income/amount/child_min_age.yaml @@ -0,0 +1,6 @@ +description: Minimum age for children to receive the child basic income. +metadata: + unit: year + label: Child basic income minimum threshold +values: + 2010-01-01: 0 diff --git a/policyengine_uk/variables/contrib/ubi_center/basic_income/bi_maximum.py b/policyengine_uk/variables/contrib/ubi_center/basic_income/bi_maximum.py index c21c4d3f6..22271484d 100644 --- a/policyengine_uk/variables/contrib/ubi_center/basic_income/bi_maximum.py +++ b/policyengine_uk/variables/contrib/ubi_center/basic_income/bi_maximum.py @@ -12,7 +12,10 @@ def formula(person, period, parameters): bi = parameters(period).gov.contrib.ubi_center.basic_income weekly_flat_amount = bi.amount.flat is_senior_for_bi = person("is_SP_age", period) - is_child_for_bi = person("age", period) < bi.amount.adult_age + age = person("age", period) + is_child_for_bi = (age < bi.amount.adult_age) * ( + age >= bi.amount.child_min_age + ) weekly_amount_by_age = select( [is_child_for_bi, is_senior_for_bi], [bi.amount.by_age.child, bi.amount.by_age.senior],