When the final image in a compound microscope is formed at infinity, the angular magnification due to the eyepiece ($m_e$) is given by:
From NCERT Eq. 9.44(b): 'When the final image is formed at infinity, the angular magnification due to the eyepiece is $m_e = (D/f_e)$'.