Checklist
Is your feature request related to a problem? Please describe.
No.
Describe the solution you'd like
With private electric providers, many offer a discount per hours - e.g. 15% off on weekdays between 08:00-17:00.
Need to think about how to model, and use it within the component to get a more clear estimation of the cost.
I've thought about a json with hour ranges describing the discount from the full tariff, but that's a longshot.
e.g.
{
// Sunday
"0": {
"from": "08:00",
"to": "17:00",
"price": 0.50
},
"1": {
"from": "20:00",
"to": "23:59",
"discountPercent": 15
},
"2": {
"from": "00:00",
"to": "08:08",
"discountPercent": 15
}
// ...
}
Downside is that it's not very intuitive, and hard to maintain.
Checklist
Is your feature request related to a problem? Please describe.
No.
Describe the solution you'd like
With private electric providers, many offer a discount per hours - e.g. 15% off on weekdays between 08:00-17:00.
Need to think about how to model, and use it within the component to get a more clear estimation of the cost.
I've thought about a json with hour ranges describing the discount from the full tariff, but that's a longshot.
e.g.
Downside is that it's not very intuitive, and hard to maintain.