to make plans or assumptions without considering an important person, fact, or difficulty
"They thought the deal would go through easily, but they reckoned without local resistance."
He had reckoned without his host.
— Arthur Conan Doyle, Sherlock Holmes stories