Depending on the circumstances, a long time. Things like misuse, moving multiple times, sitting dry, or worse yet, dry in the sun, can all have factors.
The main difference between sometbsom like a Petco tank and a Red Sea is fit and finish. A RS tank will have cleaner silicone joints, low iron glass, beveled edges etc.