Calculate the acceleration and distance of an object in motion