What is the formula in solving the profit? ​