To put this into a formula, subjective well-being = positive affect - negative affect + life satisfaction + flourishing.
Ed Diener & Robert Biswas-Diener