It pretty much depends on how picky, err refined, you are.
Store bought preground coffee (foldgers etc)will seem to last for ages, because it's not that great to begin with.
Beans you grind yourself at the store will seemingly last less longer than the pre-ground stuff.
Beans you grind at home as you need will last longer than if you grind them all and put them into a separate container.
If you homeroast your own, chances are your definition of "fresh" has a lifespan of hours rather than days or weeks.
The world needs more humble geniuses, there are so few of us left.