Use a formula to calculate speed and acceleration.