Measuring workplace morale -- and how to game the sick-day system.