Determining the mass of a planet using its distance from another celestial body is not possible. Knowledge of distance alone is not sufficient to calculate the mass of a planet or any celestial body. Mass can be determined through various methods, such as measuring the gravitational pull exerted by the planet or using Kepler's laws if the planet orbits another star.