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
#2
First you should make an effort at writing the code.
Then we will be glad to help where you are having problems.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need help with creating dynamic columns with for loops for stock prices PaDat 2 859 Feb-22-2023, 04:34 AM
Last Post: PaDat
  SMA (simple moving avg) Not receiving Data (stock prices). gdbengo 2 1,407 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,421 Apr-06-2022, 03:41 PM
Last Post: Gribouillis
  Needing to Check Every Quarter Hour bill_z 10 2,895 Feb-09-2022, 07:23 PM
Last Post: menator01
  Struggling for the past hour to define function and call it back godlyredwall 2 2,158 Oct-29-2020, 02:45 PM
Last Post: deanhystad
  Bill calculator with different prices JHPythonLearner 10 4,953 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