Calculation of Profit or Loss