This equation allows astronomers to calculate the distance to stars if their absolute and apparent magnitudes are known.