How to compute the magnification of optical instruments

How to compute the optical microscopy magification and video electronic magnification for a microscope system?