Dim doc As NotesDocument
Dim modifyDate As Variant
'...set value of doc...
modifyDate = doc.LastModified
Dim doc As NotesDocument
Dim days As Integer
'...set value of doc...
days = Cint( Date - doc.LastModified )
If days > 14 Then
doc.PurgeDate = Date
Else
If days > 7 Then
doc.PurgeDate = Date + 7
End If
End If
Call doc.Save( True, True )