How To Calculate The Gain