Given a time, calculates the next train. Data from Portugal train schedules.