The Formula for Contentment