(usually in negative sentences) to expect sth to happen and be prepared for it :
We hadn't bargained for this sudden change in the weather.
When he agreed to answer a few questions, he got more than he bargained for (= he got more questions, or more difficult ones, than he had expected) .
[+ -ing ]
I didn't bargain on finding them here as well.
I hadn't bargained on them being here.