grinding machine operation time calculation