calculating employee details