Calculate consecutive days