Updated bug in hour calculations