The Happy Planet Index measures life expectancy , experienced well-being , inequality of outcomes , and ecological footprint in order to determine the countries that are able to deliver the longest and happiest , but also most sustainable lives to their residents .