as long as you want. just make sure it's food grade. some people use regular trash cans and the ro/di will pull certain things from the material, in brute trash cans theyll be fine.
if you want to store saltwater, make sure the salt you use doesnt have any vitamins added like in Reef Crystals, regular Instant Ocean will be fine in a jug too