how do you calculate ball mill residence time