Updated cost model for EasyEnergy
This commit is contained in:
@@ -56,10 +56,23 @@ class Cost
|
||||
|
||||
def easy_energy_rate(formatted_hour)
|
||||
year = Date.parse(formatted_hour).year
|
||||
month = Date.parse(formatted_hour).month
|
||||
|
||||
case year
|
||||
when 2020..2022
|
||||
when 2020..2021
|
||||
# opslag, zonder BTW
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user