calculating average download rate