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

Study childcare entitlement #1016

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vahid-ahmadi
Copy link
Collaborator

@vahid-ahmadi vahid-ahmadi commented Jan 30, 2025

Overview

This PR Implements the study childcare entitlement schemes in PolicyEngine UK:

  • Care to learn scheme: provides childcare support for young parents (under 20) in education
  • Childcare grant: provides childcare support for full-time higher education students

Note

Both schemes apply to England only. Different programs operate in Scotland, Wales, and Northern Ireland.

Key Features

  • Care to Learn:

    • Output type: Weekly amount (£180 or £195) for each eligible parent based on London residence
    • For young parents under 20 in education (except higher education)
    • Cannot be claimed by apprentices with a salary
  • Childcare Grant:

    • Output type: Weekly amount (£188.90-£193.62 for 1 child, £323.85-£331.95 for 2+ children)
    • For undergraduate students with children under 15
    • Income limits apply (£19,795.23 for 1 child, £28,379.39 for 2+ children)
    • Cannot claim with Tax Credits or Universal Credit childcare elements

Fixes #1017

Depends on #1004

metadata:
unit: year
period: year
label: Maximum age to be eligible for care to learn scheme
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Always refer to proper nouns in capitalisation

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this should always be Care to Learn- copy however the govt calls schemes.
image

@@ -0,0 +1,10 @@
description: The Department for Education sets a maximum age for carers to be eligible for care to learn scheme.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the Care to Learn scheme. Please run all text additions through Claude for grammar in future- bit repetitive! Thanks

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: The Department for Education sets a maximum age for carers to be eligible for care to learn scheme.
description: The Department for Education limits Care to Learn eligibility to carers younger than this age.

@@ -0,0 +1,24 @@
description: Amount of support available through the Care to Learn scheme
in_london:
description: Maximum weekly amount available per child for those living in London
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Always end descriptions with full stops, as in previous PRs :)

period: week
label: Maximum weekly amount per child in London
reference:
- title: none
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

none?

lives_in_england = country == countries.ENGLAND

# Return eligibility - must be a parent AND meet all other criteria
return (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean, nice formula!

# Check basic eligibility conditions
has_children = person.benunit.any(person("is_child", period))
p = parameters(period).gov.hmrc.study_childcare_entitlement
under_20 = person("age", period) < p.care_to_learn_age_eligible
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid parameter values in variable names

Suggested change
under_20 = person("age", period) < p.care_to_learn_age_eligible
age_eligible = person("age", period) < p.care_to_learn_age_eligible


def formula(person, period, parameters):
# Only parents can be eligible, not children
is_parent = ~person("is_child", period)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then use ~is_child below. ~is_child does not imply is_parent.

Suggested change
is_parent = ~person("is_child", period)
is_child = person("is_child", period)

eligible = person("care_to_learn_eligible", period)

# Check if in London using region
household_region = person.household("region", period)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need the extra variable

Suggested change
household_region = person.household("region", period)
region = person.household("region", period)
p = parameters(period).gov.hmrc.study_childcare_entitlement.care_to_learn.amount
max_amount = where(
region == region.possible_values.LONDON,
p.in_london,
p.outside_london,
)
return eligible * max_amount * WEEKS_IN_YEAR

@@ -0,0 +1,10 @@
description: The Department for Education sets a maximum age for carers to be eligible for care to learn scheme.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: The Department for Education sets a maximum age for carers to be eligible for care to learn scheme.
description: The Department for Education limits Care to Learn eligibility to carers younger than this age.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to care_to_learn/age_limit.yaml (and care_to_learn/amount.yaml)

Copy link

sonarqubecloud bot commented Feb 7, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add study childcare entitlement
3 participants