Added mining calc API method