Formula For Distance Traveled