calculate residence time through ball mill