On distance, magnitude, and related quantities in an expanding universe