If you make it yourself, coffee is really cheap, and I say this despite buying good-quality, Fair Trade beans. Paying coffee shop rates, however, is a rip off (Starbucks, I'm looking at you).
Also figure that if drinking it improves your productivity at all, it's money well spent.