last-minute

最後の瞬間の、どたん場での

I got a cheap flight at the last minute.
土壇場で格安の航空券を手に入れました。