common: amountutil