New Zealand ranks 17th this year in countries with the highest life expectancy, 83.8 years, gaining one place compared with Kiwis born in 2016 who had an average life span of 81.5 years.