Let\'s say you want to calculate the remaining download time, and you have all the information needed, that is: File size, dl\'ed size, size left, time elapsed, momentary dl
The obvious way would be something in between, you need a 'moving average' of the download speed.