fix parseDataByDate, return separate objects for totals and days