A computer code to establish the cost of Acid Rock Drainage? Sounds too good to be true? Not so. I quote from the Office of Surface Mining Technical Innovation and Professional Services' website:

Version 4.0 of AMDTreat is now released. Version 4.0 is a major upgrade to the popular cost modeling software. Among the new features we are adding in version 4.0 is the ability to cost model up to 99 of each type of structure or treatment system, in a single project file, with full control over the incoming water parameters for each component; the capturing of over 1500 Other Costs; and inclusion of an integrated metric conversion capability (just right click on an input block). We have also added new cost estimating modules, including Limestone Bed and Bio Reactor in the Passive treatment section and Oxidants in the Chemical treatment section. In addition, the user has the ability to temporarily suspend any instance of a cost module from the cost estimate for the purposes of what-if modeling.
AMDTreat (Pronounced: am'-D-treat or A-M-D-treat.), a member of OSM's Technical Innovation and Professional Services (TIPS) suite of software, is a computer application for estimating abatement costs for pollutional mine drainage, commonly referred to as Acid Mine Drainage or AMD. (Also Acid Rock Drainage or ARD.) The current version of AMDTreat is v4.0. AMDTreat can assist a user in estimating costs to abate water pollution using a variety of passive and chemical treatment types, including vertical flow ponds, anoxic limestone drains, anaerobic wetlands, aerobic wetlands, bio reactors, manganese removal beds, limestone beds, oxic limestone channels, caustic soda, hydrated lime, pebble quicklime, ammonia, oxidation chemicals, and soda ash treatment systems. The acid mine drainage abatement cost model provides over 400 user modifiable variables in modeling costs for treatment facility construction, excavation, revegetation, piping, road construction, land acquisition, system maintenance, labor, water sampling, design, surveying, pumping, sludge removal, chemical consumption, clearing and grubbing, mechanical aeration, and ditching. AMDTreat also contains several financial and scientific tools to help select and plan treatment systems. These tools include a long-term financial forecasting module, an acidity calculator, a sulfate reduction calculator, a Langelier saturation index calculator, a mass balance calculator, a passive treatment alkalinity calculator, an abiotic homogeneous Fe2+ oxidation calculator, a biotic homogeneous Fe2+ oxidation calculator, an oxidation tool, and a metric conversion tool.