The principle of quantifying money