Skip to content

Commit dd1eacb

Browse files
vahid-ahmadiclaude
andauthored
Add Scottish Child Payment 2026-27 rate and CPI uprating (#1487)
* Add Scottish Child Payment 2026-27 rate and CPI uprating - Add SCP 2026-27 rate of £28.20/week (effective 2026-04-01) per Scottish Fiscal Commission forecasts - Enable CPI uprating for SCP base amount parameter - Enable CPI uprating for SCP baby boost under-1 total parameter - Add reference to Scottish Fiscal Commission January 2026 forecasts - Add unit test for 2026 rate Reference: Scottish Fiscal Commission - Scotland's Economic and Fiscal Forecasts January 2026 https://fiscalcommission.scot/wp-content/uploads/2026/01/Scotlands-Economic-and-Fiscal-Forecasts-January-2026-revised-13-01-2026.pdf Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Add SFC forecast values for 2027-2031 Update parameters with explicit Scottish Fiscal Commission forecast values: Scottish Child Payment base rate: - 2026-27: £28.20 - 2027-28: £28.85 - 2028-29: £29.45 - 2029-30: £30.05 - 2030-31: £30.65 Under-1 total: - 2027-28: £40.00 - 2028-29: £40.80 - 2029-30: £41.65 - 2030-31: £42.50 Update tests to match SFC forecast values. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Fix changelog entry format Move changelog entry from changelog.yaml to changelog_entry.yaml per project conventions. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * style: apply Black 26.1.0 formatting Remove extra blank lines per updated Black style guide. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2087c31 commit dd1eacb

12 files changed

Lines changed: 97 additions & 19 deletions

File tree

changelog_entry.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- bump: minor
2+
changes:
3+
added:
4+
- Scottish Child Payment rates from 2026-27 to 2030-31 per Scottish Fiscal Commission forecasts.
5+
- Scottish Child Payment baby boost under-1 total from 2027-28 to 2030-31 per SFC forecasts.
6+
- CPI uprating for SCP parameters for projections beyond 2030-31.
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
description: Total weekly Scottish Child Payment amount for children under 1.
22
values:
33
0001-01-01: 0
4-
2027-04-01: 40
4+
2027-04-01: 40.00
5+
2028-04-01: 40.80
6+
2029-04-01: 41.65
7+
2030-04-01: 42.50
58
metadata:
69
unit: currency-GBP
710
period: week
811
label: Scottish Child Payment total for under-1s
12+
uprating: gov.economic_assumptions.indices.obr.consumer_price_index
913
reference:
1014
- title: Scottish Budget 2026 to 2027
1115
href: https://www.gov.scot/publications/scottish-budget-2026-2027/pages/6/
16+
- title: Scottish Fiscal Commission - Scotland's Economic and Fiscal Forecasts January 2026
17+
href: https://fiscalcommission.scot/wp-content/uploads/2026/01/Scotlands-Economic-and-Fiscal-Forecasts-January-2026-revised-13-01-2026.pdf

policyengine_uk/parameters/gov/hmrc/fuel_duty/calculate_fuel_duty_rates.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import yaml
2020

21-
2221
# Years to calculate rates for
2322
CALCULATION_YEARS = range(2026, 2031)
2423

policyengine_uk/parameters/gov/social_security_scotland/scottish_child_payment/amount.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,20 @@ values:
66
2022-11-14: 25
77
2024-04-01: 26.70
88
2025-04-01: 27.15
9+
2026-04-01: 28.20
10+
2027-04-01: 28.85
11+
2028-04-01: 29.45
12+
2029-04-01: 30.05
13+
2030-04-01: 30.65
914
metadata:
1015
unit: currency-GBP
1116
period: week
1217
label: Scottish Child Payment weekly amount
18+
uprating: gov.economic_assumptions.indices.obr.consumer_price_index
1319
reference:
1420
- title: The Scottish Child Payment Regulations 2020, Regulation 20
1521
href: https://www.legislation.gov.uk/ssi/2020/351/regulation/20
1622
- title: Scottish Government - Scottish Child Payment
1723
href: https://www.gov.scot/policies/social-security/scottish-child-payment/
24+
- title: Scottish Fiscal Commission - Scotland's Economic and Fiscal Forecasts January 2026
25+
href: https://fiscalcommission.scot/wp-content/uploads/2026/01/Scotlands-Economic-and-Fiscal-Forecasts-January-2026-revised-13-01-2026.pdf

policyengine_uk/tests/microsimulation/test_reform_impacts.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from pathlib import Path
99
from policyengine_uk import Microsimulation
1010

11-
1211
# Load configuration from YAML file
1312
config_path = Path(__file__).parent / "reforms_config.yaml"
1413
with open(config_path, "r") as f:

policyengine_uk/tests/microsimulation/test_salary_sacrifice_cap_reform.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import pandas as pd
2121
from policyengine_uk import Microsimulation
2222

23-
2423
# Policy year when the salary sacrifice cap takes effect
2524
POLICY_YEAR = 2030 # Use 2030 to ensure cap is active (cap starts 2029-04-06)
2625

policyengine_uk/tests/policy/baseline/gov/social_security_scotland/scottish_child_payment.yaml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,72 @@
255255
# [parent, child_1]
256256
scottish_child_payment: [0, 1412]
257257

258+
- name: SCP with 2026 amount (£28.20/week)
259+
period: 2026
260+
absolute_error_margin: 10
261+
input:
262+
people:
263+
parent:
264+
age: 30
265+
child_1:
266+
age: 5
267+
benunits:
268+
benunit:
269+
members: [parent, child_1]
270+
universal_credit: 5000
271+
households:
272+
household:
273+
members: [parent, child_1]
274+
region: SCOTLAND
275+
output:
276+
# £28.20/week * 52 weeks = £1,466.40
277+
# [parent, child_1]
278+
scottish_child_payment: [0, 1466]
279+
280+
- name: SCP with 2027 amount (£28.85/week)
281+
period: 2027
282+
absolute_error_margin: 10
283+
input:
284+
people:
285+
parent:
286+
age: 30
287+
child_1:
288+
age: 5
289+
benunits:
290+
benunit:
291+
members: [parent, child_1]
292+
universal_credit: 5000
293+
households:
294+
household:
295+
members: [parent, child_1]
296+
region: SCOTLAND
297+
output:
298+
# £28.85/week * 52 weeks = £1,500.20
299+
# [parent, child_1]
300+
scottish_child_payment: [0, 1500]
301+
302+
- name: SCP with 2028 amount (£29.45/week)
303+
period: 2028
304+
absolute_error_margin: 10
305+
input:
306+
people:
307+
parent:
308+
age: 30
309+
child_1:
310+
age: 5
311+
benunits:
312+
benunit:
313+
members: [parent, child_1]
314+
universal_credit: 5000
315+
households:
316+
household:
317+
members: [parent, child_1]
318+
region: SCOTLAND
319+
output:
320+
# £29.45/week * 52 weeks = £1,531.40
321+
# [parent, child_1]
322+
scottish_child_payment: [0, 1531]
323+
258324
- name: CTC no longer qualifies from 2025 (after April 2024)
259325
period: 2025
260326
absolute_error_margin: 1

policyengine_uk/tests/policy/reforms/scp_baby_bonus/scottish_child_payment_baby_bonus.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
members: [parent, baby]
2525
region: SCOTLAND
2626
output:
27-
# Under-1s get £40/week total (policy parameter)
28-
# £40/week * 52 weeks = £2,080 per year
27+
# Under-1s get £40.80/week total (2028-29 SFC forecast)
28+
# £40.80/week * 52 weeks = £2,121.60 per year
2929
# [parent, baby]
30-
scottish_child_payment: [0, 2080]
30+
scottish_child_payment: [0, 2122]
3131

3232
- name: SCP baby bonus - child over 1 gets standard rate (2028)
3333
period: 2028
@@ -49,9 +49,9 @@
4949
members: [parent, toddler]
5050
region: SCOTLAND
5151
output:
52-
# Standard rate only: £27.15/week * 52 = £1,411.80
52+
# Standard rate only: £29.45/week * 52 = £1,531.40
5353
# [parent, toddler]
54-
scottish_child_payment: [0, 1412]
54+
scottish_child_payment: [0, 1531]
5555

5656
- name: SCP baby bonus - mixed ages (2028)
5757
period: 2028
@@ -75,10 +75,10 @@
7575
members: [parent, baby, older_child]
7676
region: SCOTLAND
7777
output:
78-
# Baby (age 0): £40/week total * 52 = £2,080
79-
# Older child (age 5): £27.15/week * 52 = £1,411.80
78+
# Baby (age 0): £40.80/week total * 52 = £2,121.60
79+
# Older child (age 5): £29.45/week * 52 = £1,531.40
8080
# [parent, baby, older_child]
81-
scottish_child_payment: [0, 2080, 1412]
81+
scottish_child_payment: [0, 2122, 1531]
8282

8383
- name: SCP baby bonus - not in Scotland (2028)
8484
period: 2028

policyengine_uk/tests/test_behavioral_responses.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from policyengine_uk import Microsimulation
1717
from policyengine_uk.model_api import Scenario
1818

19-
2019
# Check if HF token is available for data-dependent tests
2120
HF_TOKEN_AVAILABLE = bool(os.environ.get("HUGGING_FACE_TOKEN"))
2221
requires_hf_data = pytest.mark.skipif(

policyengine_uk/utils/dependencies.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,12 @@ def create_waterfall_change_chart(
179179

180180

181181
def add_fonts():
182-
fonts = HTML(
183-
"""
182+
fonts = HTML("""
184183
<link rel="preconnect" href="https://fonts.googleapis.com">
185184
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
186185
<link href="https://fonts.googleapis.com/css2?family=Roboto+Serif:ital,opsz,wght@0,8..144,100..900;1,8..144,100..900&display=swap" rel="stylesheet">
187186
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap" rel="stylesheet">
188-
"""
189-
)
187+
""")
190188
return display_html(fonts)
191189

192190

0 commit comments

Comments
 (0)