If the aircraft are properly inspected and maintained they can go on forever. They may not be the most efficient but they will still work.
Aircraft the the Hawaiian flight where the cabin roof came off should have been found with a proper inspection.
There are DC3s still in service.