bargain on

Upper Intermediate (B2) neutral

To expect something to happen and include it in your plans.

"We hadn't bargained on the project taking three months longer than planned."