Extract out DateUtil and fix initHistoricalData logic issue on not cumulating data correctly