Shelf-Life Debacle

I'm having a difficult time finding specific examples online and wanted to understand how Drug Product shelf-life is set. I have tried looking at the guidelines but everything is just pointing to how we get to the shelf-life determination (i.e. stability studies).

Here is the debacle:

If a product was manufactured on 15Aug2023 and has a 24-month shelf-life, would the expiration date that is printed on the bottle be Aug 2025 or July 2025?

Can someone please assist and point to guidelines if available?