I would say 5 to 7 days should be the max
I don't keep it longer than a week. After that, it tends to get a slightly funny odor. I never keep any left-overs longer than that. As for the safety factor, I'm not entirely certain, but better to play it safe, no?