Calculating Gaining Ratio