code: def getDuration(self):
          
          starttime = self.getStartProcessDate()
          if not starttime:
              # The analysis is not yet ready to be processed
              return 0
          endtime = self.getDateVerified() or DateTime()
  
          # Duration in minutes
          duration = (endtime - starttime) * 24 * 60
          return duration
docs: Returns the time in minutes taken for this analysis.
          If the analysis is not yet 'ready to process', returns 0
          If the analysis is still in progress (not yet verified),
              duration = date_verified - date_start_process
          Otherwise:
              duration = current_datetime - date_start_process
          :return: time in minutes taken for this analysis
          :rtype: int