On the Determination of the Distance of a Comet from the Earth