U cannot say how long it last for sure. It's more guessing. It depends on how well it is cooled. All parts wear down.
You computer will last pretty long that way.
My computer is 7 almost 8 years old and it runs perfectly. It has 100% CPU usage almost all the time.
The great thing about computers is that you can replace all parts, so basically a computer can last forever.