calculations in compartment mill