Created
December 24, 2014 11:49
-
-
Save clojens/55dc0afaff20a75d67c9 to your computer and use it in GitHub Desktop.
VAT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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