Added TimeLeft function to time_tools