Skip to content

Commit 39449d5

Browse files
authored
Add explicit Tax-Free Childcare leave inputs (#1601)
1 parent 8807d80 commit 39449d5

7 files changed

Lines changed: 80 additions & 1 deletion

File tree

changelog.d/1044-explicit-leave.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Added explicit Tax-Free Childcare adoption and shared parental leave work-condition inputs.

policyengine_uk/tests/policy/baseline/gov/hmrc/tax_free_childcare/tax_free_childcare_treated_as_in_work.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,22 @@
1313
output:
1414
tax_free_childcare_treated_as_in_work: true
1515

16+
- name: Person on adoption leave is treated as in work
17+
period: 2025
18+
input:
19+
in_work: false
20+
tax_free_childcare_on_adoption_leave: true
21+
output:
22+
tax_free_childcare_treated_as_in_work: true
23+
24+
- name: Person on shared parental leave is treated as in work
25+
period: 2025
26+
input:
27+
in_work: false
28+
tax_free_childcare_on_shared_parental_leave: true
29+
output:
30+
tax_free_childcare_treated_as_in_work: true
31+
1632
- name: Person receiving statutory sick pay is treated as in work
1733
period: 2025
1834
input:
@@ -50,5 +66,7 @@
5066
input:
5167
in_work: false
5268
tax_free_childcare_on_qualifying_leave: false
69+
tax_free_childcare_on_adoption_leave: false
70+
tax_free_childcare_on_shared_parental_leave: false
5371
output:
5472
tax_free_childcare_treated_as_in_work: false

policyengine_uk/tests/policy/baseline/gov/hmrc/tax_free_childcare/tax_free_childcare_work_condition.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,3 +217,41 @@
217217
members: [person, spouse]
218218
output:
219219
tax_free_childcare_work_condition: true
220+
221+
- name: Couple one working one on adoption leave - eligible
222+
period: 2025
223+
input:
224+
people:
225+
person:
226+
is_adult: true
227+
is_parent: true
228+
in_work: true
229+
spouse:
230+
is_adult: true
231+
is_parent: true
232+
in_work: false
233+
tax_free_childcare_on_adoption_leave: true
234+
benunits:
235+
benunit:
236+
members: [person, spouse]
237+
output:
238+
tax_free_childcare_work_condition: true
239+
240+
- name: Couple one working one on shared parental leave - eligible
241+
period: 2025
242+
input:
243+
people:
244+
person:
245+
is_adult: true
246+
is_parent: true
247+
in_work: true
248+
spouse:
249+
is_adult: true
250+
is_parent: true
251+
in_work: false
252+
tax_free_childcare_on_shared_parental_leave: true
253+
benunits:
254+
benunit:
255+
members: [person, spouse]
256+
output:
257+
tax_free_childcare_work_condition: true
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from policyengine_uk.model_api import *
2+
3+
4+
class tax_free_childcare_on_adoption_leave(Variable):
5+
value_type = bool
6+
entity = Person
7+
label = "on adoption leave for tax-free childcare"
8+
definition_period = YEAR
9+
default_value = False
10+
reference = "https://www.legislation.gov.uk/uksi/2015/448/regulation/12"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from policyengine_uk.model_api import *
2+
3+
4+
class tax_free_childcare_on_shared_parental_leave(Variable):
5+
value_type = bool
6+
entity = Person
7+
label = "on shared parental leave for tax-free childcare"
8+
definition_period = YEAR
9+
default_value = False
10+
reference = "https://www.legislation.gov.uk/uksi/2015/448/regulation/12"

policyengine_uk/variables/gov/hmrc/tax_free_childcare/conditions/tax_free_childcare_treated_as_in_work.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,7 @@ def formula(person, period, parameters):
2828
return (
2929
person("in_work", period)
3030
| person("tax_free_childcare_on_qualifying_leave", period)
31+
| person("tax_free_childcare_on_adoption_leave", period)
32+
| person("tax_free_childcare_on_shared_parental_leave", period)
3133
| statutory_temporary_absence_pay
3234
)

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)