mining total cost of ownership