Implemented  method to calculate the hourly Data.