calculations in mineral processing plants