Prices 2023 added

This commit is contained in:
Aart van Halteren
2023-01-01 17:57:13 +01:00
parent 10bd014433
commit d92d240b10
5 changed files with 64 additions and 4 deletions

View File

@@ -4,8 +4,8 @@ EASY_ENERGY_TARIFFS = {}
# See https://www.belastingdienst.nl/wps/wcm/connect/bldcontentnl/belastingdienst/zakelijk/overige_belastingen/belastingen_op_milieugrondslag/tarieven_milieubelastingen/tabellen_tarieven_milieubelastingen
# Without VAT
ENERGY_TAX_KWH = { 2020 => 0.09770, 2021 => 0.09428, 2022 => 0.03679}
ODE_KWH = { 2020 => 0.0273, 2021 => 0.0300, 2022 => 0.0305}
ENERGY_TAX_KWH = { 2020 => 0.09770, 2021 => 0.09428, 2022 => 0.03679, 2023 => 0.12599 }
ODE_KWH = { 2020 => 0.0273, 2021 => 0.0300, 2022 => 0.0305, 2023 => 0.0}
# merge by adding values
TAX_KWH = ENERGY_TAX_KWH.merge(ODE_KWH){|key, energy_tax, ode| energy_tax + ode}
@@ -151,6 +151,9 @@ class Cost
high_tariff ? 0.06782 : 0.05259
when 2022
high_tariff ? 0.23665 : 0.19408
when 2023
# rate excl. VAT
high_tariff ? 0.47758 : 0.34165
end
end
@@ -175,10 +178,15 @@ class Cost
# normaal_kwh * (0.23665 + 0.04452 + 0.03691) + dal_kwh * (0.19408 + 0.04452 + 0.03691)
normaal_kwh_cost = 0.23665
dal_kwh_cost = 0.19408
# From 8 Sept 2022 until 31 December 2025 (may need to extend this)
when 1662595200..1767139200
# From 8 Sept 2022 until 31 December 2022
when 1662595200..1672527599
normaal_kwh_cost = 0.60824
dal_kwh_cost = 0.43701
# From 1 Jan 2023 until 31 December 2023
when 1672527600..1704063599
vat = 1 + vat_at(Date.parse(formatted_hour))
normaal_kwh_cost = 0.47758*vat
dal_kwh_cost = 0.34165*vat
else
# catch-all, incase 'formated_hour' is outside any of the cases
normaal_kwh_cost = 0.0