TAG: Calculating value of quality