gains_losses function

Gains & Losses