Race against time/the clock Phrase
A situation in which something has to be done very quickly
Ex. It’s a race against time to get the building finished before the rainy season sets in.
With only two days before the election, they find themselves in a race against time.