Coffee beans are best when brewed between 5 days and a month after roasting. Some variation may exist, depending on the darkness of the roast. They are still off-gassing if you brew them too soon, which disrupts extraction and wait too long, and they'll start to lose flavor.