more accurate way of calculating date for each cell