calculating ab avg response time