How To Calculate Recognized Gain