Attached is a simple terrain calculator that I wrote to support my current side project. Nothing fancy, just enter a province terrain value and it lists the terrain flags. Might be handy for someone other than myself, and it is much faster than doing it manually.
You will need Yabasic which can be found here:
http://www.yabasic.de/
Yabasic runs under Unix and Windows; it is small (around 200KB) and free.