Skip to content

Instantly share code, notes, and snippets.

View rap1ds's full-sized avatar

Mikko Koski rap1ds

View GitHub Profile
@rap1ds
rap1ds / gist:5509080
Created May 3, 2013 13:20
Daily allowance calculation by country, city and start and end dates
(def country-list
{:fi {:default {:full 3900 :big 2600 :small 1300}}
:de {:default {:full 2400 :big 1200 :small 600}}
:uk {:default {:full 4200 :big 2800 :small 1400}
:london {:full 5700 :big 3800 :small 1900}}})
(defn country-allowance
([country]
(country-allowance country "default"))
([country city]