If you have to eat a meal before cardio, (i.e. doing cardio at night time or during the afternoon), what would be the best meal to eat beforehand (pro/fat?) and how long should the last meal be before working out so that you can still see benefits from doing the cardio?

I remember seeing 4 hours but then I saw 6-8 on another post for time w/o eating.

I hope this is clear.

thanks