fix min time computation