inserted code for weekday and round to half hour and hour