Section 987 Gain Loss Calculation