Your poll is kind of subjective. A gamer might say 3 years and and office worker might say 7 years. However, for general use, a computer might last 3-6 years depending on what you expect. A lot depends on how new the parts are that go into the computer and if they are underpowered moderately powered or high-end powered.
If you live in an area where the computer is exposed to higher temperatures or excess dust this could also shorten the lifespan of a computer. Even using an SSD can have the possibility of shortening a lifespan of a computer.
There can be some advantages to beefing up the RAM when you build the computer. Over time it always seems it would be nice to have more RAM 2 years later. If you use an SSD, having more RAM could make it last longer.
If you live in an area where the computer is exposed to higher temperatures or excess dust this could also shorten the lifespan of a computer. Even using an SSD can have the possibility of shortening a lifespan of a computer.
There can be some advantages to beefing up the RAM when you build the computer. Over time it always seems it would be nice to have more RAM 2 years later. If you use an SSD, having more RAM could make it last longer.