Calculating Net Profit Formula