Add a check for quota == 0 -> division by zero