That is a narrow view. A lot of foodstuff gets processed into stable products with a shelf life, and grain can be stored for years.
All you're left with is figuring out how much food is between the harvest and the supermarket. And that's not alot. Demand matches the consumption of citizens and time to market is optimised to be short. This is before considering how unhealthy the most durable foods are since sugar is the main ingredient in all of them, from chips and chocolate to processed cans.
There’s also huge food stockpiles worldwide simply because crops like North American corn get harvested in the fall and then supplied over the next year. At which point we can cut biofuel production should an actual shortage occur.