Using Math to Track Speed and Distance