Better way of calculating beginning of days.