title: What's the best way to calculate remaining download time?
body: <p>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 speed, etc'.
  How would you calculate the remaining dl time?</p>
  
  <p>Ofcourse, the straightforward way would be either: size left/momentary dl speed, or: (time elapsed/dl'ed size)*size left.
  Only that the first would be subject to deviations in the momentary speed, and the latter wouldn't adapt well to altering speeds.</p>
  
  <p>Must be some smarter way to do that, right? Take a look at the pirated software and music you currently download with uTorrent. It's easy to notice that it does more than the simple calculation mentioned before. Actually, I notices that sometimes when the dl speed drops, the time remaining also drops for a couple of moments until it readjusts.</p>