Is the wait time a customer with an appointment spends in a queue included in the total wait time?

Yes, since we calculate total wait time as the time from when a customer enters a queue until the time the customer is summoned.