Created time_left method