worker_attendance: add this function following new requirement;