calculating profit and loss

calculating profit and loss