P=R-C
Solve the formula for C
Solve the formula for C