Tricks to avoid eating leftovers that will make you sick

Just how long is that food in the fridge good for?