add document_age function to check age of entry/feed documents