calculate cycle time in surface grinding