From f458062ff80f34bad15d50dddcae8fd4de883fbd Mon Sep 17 00:00:00 2001 From: Jaap P Date: Sun, 22 Jan 2023 13:08:02 +0100 Subject: [PATCH] Update README.md Fix bug in cost template documentation example --- README.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6f612d7..b02989f 100644 --- a/README.md +++ b/README.md @@ -135,18 +135,24 @@ There are two special special arguments in that can be used in the template ([in Note: When configuring Nordpool using the UI, things like VAT and additional costs cannot be changed. If your energy supplier or region changes the additional costs or taxes on a semi-regular basis, the YAML configuration might be better for you. -#### Example 1: Percentage (VAT) +#### Example 1: Overhead per kWh + +Add 1,3 cents per kWh overhead cost to the current hour's price + +```{{ 0.013 | float }}``` + +#### Example 2: Percentage (VAT) Add 19 % VAT of the current hour's price -```{{current_price * 0.19}}``` +```{{ (current_price * 0.19) | float }}``` -#### Example 2: Overhead per kWh +#### Example 3: Overhead and VAT -Add 1,3 cents per kWh overhead cost to the current hour's price +Add 1,3 cents per kWh overhead cost, 0.002 flat tax and 19% VAT to the current hour's price -```{{current_price + 0.013}}``` +```{{ (0.013 + 0.002 + (current_price * 0.19)) | float }}``` -#### Example 3: Seasonal peek and off-peek overhead +#### Example 4: Seasonal peek and off-peek overhead ```jinja {% set s = {