So the question is: How do you maximize your happiness in life.
And there are thousands of words just in this [Quora] Blog trying to answer that.
Here is my 2 cents and there are two parts to the answer; one is a story (not mine), one is a statement:
1. Rabbi Hillel was walking one day when a rather threatening man said to him: I will let you pass if you will tell me the entirety of the Torah while standing on one foot.
Hillel – standing on one foot said: Treat others the way you wish to be treated. The rest, details.
2. Ask yourself: What is the meaning of life ? If you can answer this, you will be on your way to happiness.
I think part of answer is as follows: To learn to love, and to realize that[, in the end,] you will lose everything.
The rest, details.