calculate Attendance - Filament