Mining calculator