what is use to find the absolute magnitude
The apparent magnitude (m, or vmag for the visible spectrum) is the brightness of an object as it appears in the night sky from Earth, while the absolute magnitude (Mv, V and H) describes the intrinsic brightness of an object as it would appear if it were placed at a certain distance from Earth.