mathematics of money