Actually no, it's not a straightforward calculation. That's why they want to conduct the test.
It's not a simple collision like we learned about in physics class, with the change in the asteroid's momentum coming entirely from the impactor. The impactor will hit at extremely high velocity (by earth standards), meaning that it will carry a lot of kinetic energy (one half mass times velocity squared) in a small volume. This kinetic energy will vaporize and blow off part of the asteroid, which because of the asteroid's small size, will completely escape.
The mass of the ejecta will greatly exceed the mass of the impactor, so even though it may move much more slowly than the impactor it will carry away considerably more momentum (mass times velocity). The momentum of this ejecta will have most of the effect on the asteroid's trajectory.
But it's unknown exactly how much momentum will be carried away by the ejecta as this depends on the makeup of the asteroid, its density, porosity, how quickly the impactor stops and releases its energy, etc. So that's why they want to try it.
A similar effect was at play in the JFK assassination that helped cause the counter-intuitive "back and to the right" motion of his head that had so many people incorrectly thinking there was a second shooter.