A simple utility for calculating time to an event.