Calculation of momentum in closed systems