Processed beans that are stored in ordinary containers will last around 10-14 days. Packaging at home using foil will extend the shelf life up to 3-4 weeks, whereas roasted beans packed in sealed four-layer paper bags can be stored for up to 6 months.
You can drink coffee while you are pregnant, although it is recommended to limit the amount of caffeine you consume to around 200mg – which is about the equivalent of two mugs of coffee. Drinking more than this while pregnant could increase the risk of miscarriage, or having a baby with a low birth weight. Ultimately, the decision to consume caffeine is up to you, but you can cut down by switching to decaffeinated drinks and having smaller cups of coffee.