Google the term "liquidity preference". It's generally understood to be a function of real GDP and interest rates. GDP up = more demand for currency to be able to transact. Lower rates = holding cash has less opportunity cost (there are fewer opportunities to invest in other things with higher yield).