Calculating profit percentage