min_time function

first time tie point