Steam's progress bar calculates the amount of objects, how big they are, and your internet speed to see how long the estimated time is until its finished, although, your internet can change it's speed, so it can go faster or slower. For example, if it says that a download will take 3 hours, with faster internet it can be as fast as 5 minutes, or as slow at a few days.