The calculation of the electric dipole moment of CO