calculate mining plant yield formula