well, that's more of a conditional usage which translates to [once action A is completed, action B can happen].
In the original sentence, "we have until" refers to the amount of time remaining before a particular action must be completed (paying the invoice), like "You have until the end of the day to finish that report/I want that report on my desk by the end of the day"