People are happiest when they're trying to achieve goals that are difficult but not out of reach.
Harvard Business Review, Daniel Gilbert, Annie McKee, Gretchen Spreitzer, Teresa Amabile (2017). “Happiness (HBR Emotional Intelligence Series)”, p.25, Harvard Business Press