calculate mill/move distance