Fixed operand for new amount

Fixed operand for new amount by adding priority to numbers