transcendental-lisp/lisp/finance/biweekly-paydays.lisp

8 lines
193 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))
(two-weeks 14))
(+ (/ (- total-days first-payday) two-weeks) 1))