Bargain on (something)

To plan or expect something.

We did not bargain on having heavy rain during our summer birthday party.