transcendental-lisp/lisp/finance/weekly-paydays.lisp

8 lines
190 B
Common Lisp
Raw Normal View History

2017-11-12 08:37:39 -05:00
(let* ((first-payday 5)
(leap-year 0)
(days-in-year 365)
(total-days (+ days-in-year leap-year))
(one-week 7))
(+ (/ (- total-days first-payday) one-week) 1))