How to calculate momentum of an object