Simple physics. acceleration over time = speed speed over time = distance We assume the camera was static at focus time so not hard to calculate how much it moved.