A while ago while running ops with a mining corp, I used to wait and wait over how long it would take to figure out salaries. I figured I'd come up with a Excel sheet to help quicken the matter. The sheet is set up to fetch prices of minerals for easy pricing. The sheet mostly explains its self when it comes to instructions, but if you have any questions, please feel free to ask.
I found it useful to keep each mining op as a separate sheet in the book, and just move the code. Keep all your mining super organized!