Here---I did a quick one for you using textboxes
add four textboxes to your form and one command button
(make sure you enter in textbox 3 the date/time in the following format: mm/dd/yyyy h:m:s AM/PM)
Code:
Option Explicit
Private Sub Command1_Click()
Dim datetimebookdue As Date
Dim DateTimeBookReturned As Date
Dim numHrsLate As Integer
datetimebookdue = CDate(Text2.Text)
DateTimeBookReturned = CDate(Text3.Text)
numHrsLate = DateDiff("h", datetimebookdue, DateTimeBookReturned)
Text4.Text = Str(numHrsLate)
End Sub
Private Sub Form_Load()
Text1.Text = "2/12/2012 1:30:00 PM" 'date book taken out
Text2.Text = Str(DateAdd("d", 10, CDate(Text1.Text))) 'date book due (10 days later)
Text3.Text = "2/26/2012 4:30:24 PM"
End Sub