I notice the round is drawing to an end and bcalc will probably need an overhaul to support round 12 combat, but that's something I won't be doing. So (finally) here's the code to knock yourselves out on, and hopefully someone somewhere will put the effort in to make it useful for round 12.
http://www.blazde.co.uk/pa/bcalc.html