Better time calculation in the API explorer