Fixes incorrect seconds to spare calculation for next day departure times.