calculating global attendance details