Op-Amp gain calculation