extract_time_until function

Extract a 'time until' type variable