Fixed Bug in Hourly Analysis Period