Q factor
Total Q factor of the cavity can be found as