Skip to content

Specify custom discount rates per hour #66

Description

@GuyKh

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions