Write a query which add two fields of a document and compare their sum to third field in mongo
Here is one part of the answer; adding two fields together. Still trying to figure out how to compare the total of pgDownloadTime +pgAccessTime with expiredTime

// Add pgDownloadTime and pgAccessTime

db.pageTrendLog.aggregate([
    { $match: { "_id" : ObjectId("538c304b7446cf13431a2c5c") } }, 
      { $project : 
        {  
          'pgDownloadTime' : '$pgDownloadTime',  
          'pgAccessTime' : '$pgAccessTime', 
          'total' : {'$add' : [ '$pgDownloadTime', '$pgAccessTime' ]}
        }
      }]);