Comoving and proper distances