Lets see one example
Ramesh is a student he attended out of 90 days present 65 days
So lets simple calculation is
Attendance percentage = (65/90)*100 = 72.22
Ramesh avg attendance is 73% in this way we calculate the simple average Attendance of any student