How to calculate date differences using unit boundaries with dateDiff in ClickHouse®