How is the mass of earth calculated?