calculating avoided absences