-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q: Additional Cost based on date... again #457
Comments
so to sum it up, i need to add 25% and divide by 100 |
if i change the last line in my template to this would that add the 25% danish VAT? {{ (s[season][tod] + s.cost)*0.25}} |
i came even closer, this is more notes for others until i hit the nail fully and this template. its need adjusting once a year when tarrif changes
i guess i can now tick the VAT box, but that one does not say what % it uses |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i use this template to add fee's on top of what nordpool reports
{% set s = {
"cost": 88.6,
"summer": {"night": 5.5125, "day": 8.2725, "eve": 21.5025, "eve2": 8.2725, "fail": 0.0},
"winter": {"night": 5.5125, "day": 16.545, "eve": 49.6275, "eve2": 16.545, "fail": 0.00}
}
%}
{% set season = 'summer' if 4 <= now().month < 10 else 'winter' %}
{% if 0 <= now().hour < 6 %}
{% set tod = 'night' %}
{% elif 6 <= now().hour < 17 %}
{% set tod = 'day' %}
{% elif 17 <= now().hour < 21 %}
{% set tod = 'eve' %}
{% elif 21 <= now().hour < 24 %}
{% set tod = 'eve2' %}
{% else %}
{% set tod = 'fail' %}
{% endif %}
{{ s[season][tod] + s.cost}}
it should work with the tariff model 3 in denmark
fee's for each kwh depends on summer/winter and what time of day it is
the prices today are:
but i get much lower prices
have i f'ed up or is the data pulled from nordpool wrong?
one thing i have never figured is to add VAT which is 25% for denmark... how do i do that?
The text was updated successfully, but these errors were encountered: