Term: eleventh hour
Example: in the eleventh hour of my life i realized i had wasted it
Definition: at the last minute or with not much time left