Months are counted by anniversary and clamp at month ends: adding a month to 31 January lands on 28 February, and measuring back gives one month — the span and the shift agree, which is where most date tools quietly contradict themselves. Day counts come from calendar dates, so a span across a clock change is still a whole number of days.