Calculating number of available seats