Financial functions written in Clojure