Formula for catching happiness at home and at work