Minor fix to calculate range for history stats.
Minor fix to calculate range for history stats.

ppaysant/dashboard,CNRS-DSI-Dev/dashboard,mckayemu/dashboard,mckayemu/dashboard,mckaygerhard/storagestats,mckaygerhard/storagestats,ppaysant/dashboard,CNRS-DSI-Dev/dashboard