Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add minimum child age for basic income #770

Merged
merged 1 commit into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: minor
changes:
added:
- Child minimum age for basic income.
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
Loading