compute end timestamp for timeslots