how to cost coal mining