what is the formula in solving the profit​