Dim DateCnt As Variant
Dim EndDays As Integer
Dim IntDay As Integer
Dim IntTime As Integer
IntDay = Int(IntCh / intDh)
IntTime = Int(IntCh Mod intDh)
DateCnt = BegDate + 1
EndDays = 0
Do While EndDays < IntDay - 1
If Format(DateCnt, "ddd") <> "Sun" And _
Format(DateCnt, "ddd") <> "Sat" Then
EndDays = EndDays + 1
End If
DateCnt = DateAdd("d", 1, DateCnt)
Loop
DateCnt = DateAdd("h", IntTime, DateCnt)
Select Case Format(DateCnt, "ddd")
Case "sun"
Add_Day = DateAdd("d", 1, DateCnt)
Case "Sat"
Add_Day = DateAdd("d", 2, DateCnt)
Case Else
Add_Day = DateCnt
End Select