You would generally store it until the Use-by date. However, as with most food items, it won't immediately go bad. Keep opened packages securely sealed in a cool, dry location and you should be able to keep it for at least a week or two past that date (and probably longer if stored in the fridge). And like most all other foods, if it smells bad, toss it!