Instruction:
how long do roasted coffee beans last before you should throw them out?

Response:
Freshly roasted coffee beans should be used between two and ten days after roasting.  If you use them too soon, they can be bitter and off-gas carbon dioxide.  If you use them more than two weeks after roasting, most of the nuance of the flavor is gone due to changes in the chemical composition of the beans.