Depending upon their rate of reproduction and other factors, that could be a very long time. Plastic-eating microbes would presumably survive until they ran out of plastics to eat. The durations of these two threats could of course be very different. This post contributes a brief mention of electromagnetic damage as another existential threat to computing. A previous post observes that efforts to develop plastic-eating microbes could spell the end of computing.