Updated cost model for EasyEnergy

This commit is contained in:
Aart van Halteren
2022-11-21 16:55:12 +01:00
parent 2c4050fd65
commit 9b53b959a4

View File

@@ -56,10 +56,23 @@ class Cost
def easy_energy_rate(formatted_hour) def easy_energy_rate(formatted_hour)
year = Date.parse(formatted_hour).year year = Date.parse(formatted_hour).year
month = Date.parse(formatted_hour).month
case year case year
when 2020..2022 when 2020..2021
# opslag, zonder BTW # opslag, zonder BTW
0.00800 0.00800
when 2022
case month
when 1..11
# opslag, before increase
0.00800
when 12
# opslag, met BTW: 0,01962
0.018
end
when 2023
0.018
end end
end end