Add functionality to get closest according to duration of event