Calculate and create shifts for a given time range and schedule