calculate the size of grinding