implement add-day and related operators