improved relative time checking