Cost of quality (CoQ) can be calculated with a simple formula: CoQ = CoGC (cost of good quality) + CoPC (cost of poor quality).