Numerical strategies of computing the luminosity distance