ceil start time and duration time before insertion