Just messing around a bit with the developer API, and I came up with this:
http://agent86.nfshost.com/glitch/grind/
It's a tool that can read your inventory, and allows you to put in the type and quantity of powders you'd like to produce. It will tell you if you've got the right ingredients, and if not, what you still need to mine.
Other similar tools exist already, but meh, I felt like taking this on as a project.
It's very early at this point, but feel free to play with it. It lacks write access, so it can't do any harm to your character or profile. I've also started a group, link's at the bottom of the Grind-O-Tron page. If you like it or hate it, go leave feedback. Perhaps with enough prodding I'll make something else :)