How long should you keep your condiments?

From tomato sauce to mayo, here's how to cut waste without risking food safety.