Yay for math!

all the math working on the race calculator