Rewrote startTime calculation