What do you mean by how long it will last? As in "not break"? No way to know, some laptops fail in days, some are fine after 5 years.
If you mean "how long can I play games on good settings on it", that depends on the game. For newer demanding games, it's already a bit slow for past low settings at good FPS. It will run games for years, just not very well.