How Long can You Keep Leftovers?

The length of time you should keep leftovers is only three days,after that the bacteria process starts.H mm,the thought of growing left overs,no thanks.