Sub GetDifference(dDateStart As String, dTimeStart As String, dDateEnd As String, dTimeEnd As String) As Double
Dim DateStart, DateEnd, TimeDiff As Long
DateStart = DateTime.DateParse(dDateStart) + DateTime.TimeParse(dTimeStart)
DateEnd = DateTime.DateParse(dDateEnd) + DateTime.TimeParse(dTimeEnd)
TimeDiff = DateEnd - DateStart
Return TimeDiff / 1000 / 60
End Sub