Calculation of percentage attendance