When calculating the gravitational force between two extended bodies, you should measure the distance