It's just a little internet toy that probably cashes out to be a slightly more impactful version of "memento mori", but you could add a little backend complexity without collecting any more demographic information and get a more accurate life expectancy given only one's current age from extant actuarial tables. If you wanted to be extra cheeky, you could have it adjust on a regional basis based on IP address too
As for making the predicion more accurate, it's a rabbit hole you'd rather not enter. Whether you smoke or not or whether you live in a big city or not or your social class all have much higher impact than whether your IP is from Spain or Poland or Florida. Including people with the time and means to browse such website are a very select group. Not even speaking of VPNs hiding your actual geolocation. Whatever you do beyond "let's shoot at 80 for approximate time" may be making things worse.
For the U.S. you have https://www.ssa.gov/oact/population/longevity.html for this.