Scheduling trucks in a tank terminal