Tidy ticket limit calculation and restore tokens