implemented dateCheck in calcTimeseries