Text this: Smooth and nonsmooth duality for free time problems