Calculate distance from point to cart