finishing setting the start and end time