what is the formula to get the motion