Sure you could divide the remaining file size by the current download speed, but if your download speed fluctuates (and it will), this doesn\'t produce a very nice result.
speed=speedNow*0.5+speedLastHalfMinute*0.3+speedLastMinute*0.2