To make delicious coffee, the beans must be freshly roasted.
During the coffee roasting, there are many important compounds created due to a reaction between proteins and sugars. They are responsible for the coffee taste and aroma.
2 weeks after roasting, coffee quality starts to lower. After two months the taste becomes more even and less expressive. To prepare tasty coffee, you need to use the beans in the first two months after roasting.
However, too fresh coffee for making espresso is not very good. For any other method, the bean can be used the day after roasting. But if you are
making espresso coffee, you should let the beans "rest" for at least 5 days after roasting.