refactored xlCalendarDaycount function