Public Function IsOver(Bdate As Date, Edate As Date, Course As Integer) As Boolean
Dim diffDay As Integer
Dim diffMth As Integer
Dim bln As Boolean
bln = False
diffDay = Day(Edate) - Day(Bdate)
diffMth = Month(Edate) - Month(Bdate)
Select Case diffMth
Case Is > Course
bln = True
Case Is = Course
If diffDay >= 0 Then
bln = True
End If
End Select
IsOver = bln
End Function