fixed issue were date diffs less than a day caused cells outside the range to be coloured grey