Correcting Magnitudes for Distance