-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
Context
UK benefits and tax thresholds are typically uprated in April (fiscal year start), based on September CPI of the prior year. However, the current uprating system uses January 1 dates throughout.
Current Implementation
- OBR indices stored at January 1 dates (annual calendar year forecasts) in
yoy_growth.yaml create_economic_assumption_indices.pygenerates indices at January 1 dates (line 53:f"{year}-01-01")uprate_parametersin policyengine-core adds new parameter values at the same dates as the uprating indexconvert_to_fiscal_year_parameterspost-processes by sampling at April 30 and setting that as the year value
This works for annual simulations but has limitations:
- Intra-year queries don't reflect the actual April uprating date
- The fiscal year conversion is a workaround rather than correct modeling
- Parameters show January 1 dates in values_list even though actual policy changes April 6
Ideal Approach
- Store/generate uprating indices at April 1 or April 6 dates (representing fiscal years)
- Uprating would then naturally produce values at April dates
- Remove the fiscal year conversion post-processing step
This would:
- Be more accurate (uprating happens at the correct date)
- Eliminate the
convert_to_fiscal_year_parametersworkaround - Handle mid-year policy changes correctly by default
- Allow specific date queries to work properly (e.g.,
param("2026-03-15")vsparam("2026-05-15"))
Implementation Notes
Would require changes to:
policyengine_uk/parameters/gov/economic_assumptions/yoy_growth.yaml- change dates from January 1 to April 1/6policyengine_uk/parameters/gov/economic_assumptions/create_economic_assumption_indices.py- generate at April dates- Potentially
policyengine-core'suprate_parametersif any assumptions about January dates - Remove or modify
convert_to_fiscal_year_parametersinutils/parameters.py
Priority
Low - current approach works correctly for annual simulations after PR #1435 extended the fiscal year conversion range. This is an enhancement for more accurate intra-year modeling.
Related
- PR Extend fiscal year parameter conversion to 2040 #1435: Extended fiscal year conversion range to 2040
- Issue Explore on-the-fly fiscal year parameter conversion #1436: On-the-fly fiscal year conversion (alternative approach)
Metadata
Metadata
Assignees
Labels
No labels