If Val(end_month) > Val(start_month) Or Val(end_year) > Val(start_year) Then
If start_month = "01" Or start_month = "03" Or start_month = "05" Or start_month = "07" Or start_month = "08" Or start_month = "10" Or start_month = "12" Then
m1 = 31
End If
If start_month = "02" Then
m1 = 29
End If
If start_month = "04" Or start_month = "06" Or start_month = "09" Or start_month = "11" Then
m1 = 30
End If
plan_period = m1 - Val(start_day) + Val(end_day)
End If
If Val(end_month) = Val(start_month) Then
If start_month = "01" Or start_month = "03" Or start_month = "05" Or start_month = "07" Or start_month = "08" Or start_month = "10" Or start_month = "12" Then
m1 = 31
End If
If start_month = "02" Then
m1 = 29
End If
If start_month = "04" Or start_month = "06" Or start_month = "09" Or start_month = "11" Then