I'm guessing the ball is bouncing back in the opposite direction so you need to set either the before or the after velocity negative before you start to do your momentum calculations. momentum is a vector and it works with velocity, speed is a scalar.
NB The units for momentum are kg.m/s
ms is a millisecond