This talk discusses the method used with Hubble's law to calculate the distance of a celestial body from Earth. In 1929 Hubble published a paper named "A RELATION BETWEEN DISTANCE AND RADIAL VELOCITY AMONG EXTRA-GALACTIC NEBULAE". It states that galaxies are moving away from the Earth at velocities proportional to their distance. In other words, the further they are the faster they are moving away from Earth. The direct consequence of Hubble's law was the calculation of the distance of celestial bodies from Earth. The magnitude of the star is calculated by the pulsation period of the cepheid. The magnitude of the object with respect to the magnitude of Vega gives the distance to the star.