Improved race end time algorithm.