Tool change time, program for optimal tool change time