Skip to content
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
2 changes: 2 additions & 0 deletions changelog.d/cosmetic-metadata-fixes.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Fix `gov.dwp.tax_credits.min_benefit` parameter unit from `currency-USD` to `currency-GBP` — the parameter is a UK statutory threshold in pounds.
- Correct `benunit_weekly_hours` label from "Average weekly hours worked by adults in the benefit unit" to "Total weekly hours worked by adults in the benefit unit" — the formula is `adds = ["weekly_hours"]`, which sums rather than averages.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ metadata:
reference:
- href: https://www.legislation.gov.uk/uksi/2002/2008/regulation/9
name: The Tax Credits (Income Thresholds and Determination of Rates) Regulations 2002
unit: currency-USD
unit: currency-GBP
values:
2002-08-01: 26
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- name: No childcare, no element
period: 2020
absolute_error_margin: 0
absolute_error_margin: 0.001
input:
people:
parent:
Expand All @@ -15,7 +15,7 @@

- name: Childcare for one child under limit
period: 2020
absolute_error_margin: 0
absolute_error_margin: 0.001
input:
people:
parent:
Expand All @@ -30,7 +30,7 @@

- name: Childcare for one child over limit
period: 2020
absolute_error_margin: 0
absolute_error_margin: 0.001
input:
people:
parent:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- name: Fully liable
period: 2020
absolute_error_margin: 0
absolute_error_margin: 0.001
input:
people:
person:
Expand All @@ -15,7 +15,7 @@

- name: Exempt, no deduction
period: 2020
absolute_error_margin: 0
absolute_error_margin: 0.001
input:
people:
person:
Expand All @@ -30,7 +30,7 @@

- name: Too young, no deduction
period: 2020
absolute_error_margin: 0
absolute_error_margin: 0.001
input:
people:
person:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- name: Reductions apply at correct rates
period: 2021
absolute_error_margin: 0
absolute_error_margin: 0.001
input:
uc_earned_income: 10
uc_unearned_income: 1
Expand All @@ -10,7 +10,7 @@

- name: Capped at max amount
period: 2025
absolute_error_margin: 0
absolute_error_margin: 0.001
input:
uc_earned_income: 1_000
uc_unearned_income: 400
Expand All @@ -20,7 +20,7 @@

- name: Uncapped at max amount
period: 2025
absolute_error_margin: 0
absolute_error_margin: 0.001
input:
uc_earned_income: 1_000
uc_unearned_income: 400
Expand Down
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
- name: Minimum wage for a person over 25
period: 2021
absolute_error_margin: 0
absolute_error_margin: 0.001
input:
age: 30
output:
minimum_wage: 8.91

- name: Minimum wage for a person aged 18 uses the 18 to 20 bracket
period: 2025
absolute_error_margin: 0
absolute_error_margin: 0.001
input:
age: 18
output:
minimum_wage: 10

- name: Minimum wage for a person aged 21 uses the 21 to 22 bracket
period: 2025
absolute_error_margin: 0
absolute_error_margin: 0.001
input:
age: 21
output:
minimum_wage: 12.21

- name: Minimum wage for a person aged 23 uses the 23 to 24 bracket
period: 2025
absolute_error_margin: 0
absolute_error_margin: 0.001
input:
age: 23
output:
minimum_wage: 12.21

- name: Minimum wage for a person aged 25 uses the 25 or over bracket
period: 2021
absolute_error_margin: 0
absolute_error_margin: 0.001
input:
age: 25
output:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class benunit_weekly_hours(Variable):
value_type = float
entity = BenUnit
label = "Average weekly hours worked by adults in the benefit unit"
label = "Total weekly hours worked by adults in the benefit unit"
definition_period = YEAR
unit = "hour"

Expand Down
Loading