Counting days and hours