Function for determination of the download rate