Skip to content

Compute fuel duty from calibrated litres#1680

Merged
MaxGhenis merged 1 commit into
mainfrom
fuel-duty-litres-from-calibrated-data
May 20, 2026
Merged

Compute fuel duty from calibrated litres#1680
MaxGhenis merged 1 commit into
mainfrom
fuel-duty-litres-from-calibrated-data

Conversation

@MaxGhenis
Copy link
Copy Markdown
Collaborator

Summary

  • compute household fuel duty directly as petrol plus diesel litres times the statutory duty rate
  • label petrol_litres and diesel_litres with litre units
  • add a focused regression test for the litres × rate calculation

Tests

  • uv run --frozen pytest policyengine_uk/tests/test_fuel_duty_litres.py policyengine_uk/tests/test_road_fuel_volume_uprating.py -q
  • uv run --frozen ruff check policyengine_uk/variables/gov/hmrc/fuel_duty/fuel_duty.py policyengine_uk/variables/household/consumption/petrol_litres.py policyengine_uk/variables/household/consumption/diesel_litres.py policyengine_uk/tests/test_fuel_duty_litres.py

@MaxGhenis MaxGhenis force-pushed the fuel-duty-litres-from-calibrated-data branch from 5a07046 to 3ef91d3 Compare May 20, 2026 17:23
@MaxGhenis MaxGhenis force-pushed the fuel-duty-litres-from-calibrated-data branch from 3ef91d3 to 7e93d00 Compare May 20, 2026 17:28
@MaxGhenis MaxGhenis merged commit 3264772 into main May 20, 2026
9 checks passed
@MaxGhenis MaxGhenis deleted the fuel-duty-litres-from-calibrated-data branch May 20, 2026 17:36
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.

1 participant