Solve the formula for the variable P.