A working date calculation script http://www.unix.com/unix-dummies-questions-answers/4870-days-elapsed-between-2-dates.html