Two spontaneous thoughts:
Everything is relative. There are always people that have it worse than myself.
There is only one factor any individual have complete control of. My own state of mind. Some people are well off but miserable, some are poor, happy sods. It has to do with ones general outlook on life itself.
Unfortunately, I have not found the formula myself for this theoretical ranting.