Store bought bread has a shelf life of about 7 days in the pantry before it goes bad.
So it's best to eat the bread within 7 days and only buy enough bread that you can reasonably eat within 7 days.
Keep the bread stored in a cool dark place to help keep the bread from going bad and keep the bread sealed in the plastic bags they come in to prevent the bread from drying out.
It's also best to never refrigerate the bread as it can actually make the bread not last as long as it can cause the bread to dry out or become more soggy.
I always just keep the bread in the pantry and eat the bread within the 7 days and most times the bread I have is eaten well before 7 days so it's not usually a problem.
I only buy enough bread that I know we're gonna eat within that time and not buy too much.
Then I buy more bread when needed.