Calculate the number of remaining tickets taking into account reservations with attached purchases