
A cold fridge slows bacteria but does not stop them. Listeria monocytogenes is the best known case: it keeps growing slowly at fridge temperatures, and it does not change the smell or taste of food. After about 4 days the count can reach a level that matters, especially for pregnant women, older adults and people with weak immune systems. Reheating kills the bacteria, but the limit exists because some toxins and spores survive.
Count from the day you cooked, not the day you stored or opened it. Write the cooking date on the lid with tape and a pen. If you cannot remember the date, treat it as past the limit.