An employee that leaves the office at 5pm is clearly slacking off. No need to even try to measure actual productivity.