Funtion HiredMonths(YYYYHire as integer, _
MMHire as integer, _
DDHire as integer, _
YYYYCurr as integer, _
MMCurr as integer, _
DDCurr as integer) as integer
'* Note. \ does whole number division with no rounding
'* 2001/02/28 and 2001/02/29 = 0 = -1 + 1 + 0 + 0
'* 2001/02/28 and 2001/03/01 = 0 = -1 + 0 + 0 + 1
'* 2001/02/28 and 2001/03/28 = 1 = -1 + 1 + 0 + 1
HiredMonths = -1 +
+ DDCurr \ DDHire _
+ 12 * (YYYYCurr - YYYHire) _
+ MMHire - MCurr
End Function