#15 created method getAverageTransactionDuration