how to calculate residence time in ball mill