max_time function

last time tie point