From 11025018cc7cce2277b1fed809a46bae32965022 Mon Sep 17 00:00:00 2001 From: Aart van Halteren Date: Mon, 6 Jan 2025 11:34:30 +0100 Subject: [PATCH] Add 2025 cost --- app/models/cost.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/models/cost.rb b/app/models/cost.rb index 1145ab7..4f32499 100644 --- a/app/models/cost.rb +++ b/app/models/cost.rb @@ -295,7 +295,11 @@ class Cost when 1704063600..1735603199 vat = 1 + vat_at(Date.parse(formatted_hour)) normaal_kwh_cost = 0.25767769*vat - dal_kwh_cost = 0.25767769*vat + dal_kwh_cost = 0.25767769*vat + when 1735711200..1767160800 + vat = 1 + vat_at(Date.parse(formatted_hour)) + normaal_kwh_cost = 0.2695*vat + dal_kwh_cost = 0.2296*vat else p "Not supported interval Oxxio for value: %d" % date.to_time.to_i # catch-all, incase 'formated_hour' is outside any of the cases