Calculate remaining time before displaying search results