Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Different prices per hour
#1
In a database I have real-time energy data with the consumption (kW) every minute, now I want to apply dynamic prices and thus actually first sum 60 minutes to 1 hour and then the consumption x the right price applies for that hour. Who can help me with this?
The prices are €0,20 € for the first 7 hours of the day, € 0,22 per hour for the hours 7 am – 5 pm and €0,24 for the hours 5 pm – 8 am € and € 0,22 for the hours of 8 pm till 00 am.

How can I best deal with this?
Reply


Messages In This Thread
Different prices per hour - by kemper - Jan-29-2019, 10:40 AM
RE: Different prices per hour - by Larz60+ - Jan-29-2019, 11:06 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need help with creating dynamic columns with for loops for stock prices PaDat 2 902 Feb-22-2023, 04:34 AM
Last Post: PaDat
  SMA (simple moving avg) Not receiving Data (stock prices). gdbengo 2 1,450 Jul-31-2022, 08:20 PM
Last Post: paulyan
  code running for more than an hour now, yet didn't get any result, what should I do? aiden 2 1,504 Apr-06-2022, 03:41 PM
Last Post: Gribouillis
  Needing to Check Every Quarter Hour bill_z 10 3,006 Feb-09-2022, 07:23 PM
Last Post: menator01
  Struggling for the past hour to define function and call it back godlyredwall 2 2,224 Oct-29-2020, 02:45 PM
Last Post: deanhystad
  Bill calculator with different prices JHPythonLearner 10 5,038 Sep-15-2018, 12:14 AM
Last Post: volcano63

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020