Moved scripts into a scripts directory.
Added 1 day to the span (days are inclusive) and avoid divide by 0