Got leftover ham? Here’s how long it’s good after you put it away.