I can't see where you add the records to the travel table. In there, you need to save the latest access time, then you can use it in the calculation of the time remaining before the next access is permitted.
Then
$time_left = time()-60;
could be changed to calc the difference between time() and the last access time, with a value of less than a minute being displayed as the time remaining.