After a decade of meal prepping, my rule of thumb is 5 days. Technically food that's properly cooked and stored in an airtight container in a functioning fridge can be safe to eat for up to 7 days. I find that after 3-4 days, it stops being appetizing.