Skip to content

Instantly share code, notes, and snippets.

@clojens
Created December 24, 2014 11:49
Show Gist options
  • Save clojens/55dc0afaff20a75d67c9 to your computer and use it in GitHub Desktop.
Save clojens/55dc0afaff20a75d67c9 to your computer and use it in GitHub Desktop.
VAT
(def declarable-expenses {1 [81.61] 12 [24.20 29.58 127 62.65]})
(defn return-vat
[m]
(* 0.7
(* 0.21
(reduce + (map #(* (key %) (reduce + (val %)))
m)))))
(return-vat declarable-expenses)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment