Fucking Formula on Ticket state count