Well, that depends on how much money you want to put into continuing these aircraft and maintaining them. You can replace structures. You can replace wings. It is all very costly.
There comes a point where it is more cost-effective to replace a fleet rather than to continue to operate it. But there are many examples currently in the world where aircraft fleets are operated for 40 or 50 years.