How long does it keep?

How long leftovers and everyday foods keep in the fridge and freezer, based on UK food safety advice.