Optimizing Wait Time at Nodes in Time-Dependent Networks:Cost Functions and Applications