absenteeism calculation minor refactoring