Calculates finishing times