Francisco d'Anconia explained the following to Hank Reardon on page 383 of Atlas Shrugged: "Money will not purchase happiness for the man who has no concept of what he wants: money will not give him a code of values, if he's evaded the knowledge of what to value, and it will not provide him with a purpose, if he's evaded the choice of what to seek. Money will not buy intelligence for the fool, or admiration for the coward, or respect for the incompetent. The man who attempts to purchase the brains of his superiors to serve him, with his money replacing his judgment, ends up by becoming the victim of his inferiors. The men of intelligence desert him, but the cheats and the frauds come flocking to him, drawn by a law which he has not discovered: that no man may be smaller than his money."
Happiness is not a function of money. An individual can earn happiness without an abundance of money, just as an individual can earn money without an abundance of happiness.