Assume 2 billion bytes and a sustained 20 million bits per second. Ideal transfer time is 800 seconds, or 13 minutes 20 seconds.
The worked example
| Calculation |
|---|
| 2000000000 * 8 / 20000000 = 800 |
| 800 / 60 = 13.3333333 |
These are constructed inputs. Displayed decimals are rounded; they are not product measurements.
Understand the result before using it
The file size is measured in bytes while the link rate is measured in bits. Multiplying bytes by eight is necessary before dividing. If the same 2 GB file crosses a sustained 10 Mbps link, the ideal duration doubles to 1600 seconds; at 40 Mbps it halves to 400 seconds.
A transfer that is already 25 percent complete has 1.5 GB remaining, so the same model predicts 600 seconds from that point. Use remaining bytes rather than restarting the estimate with the whole file. A server cap can become the limiting rate even when the access connection is faster. Disk activity and decoding after download can also keep the task busy after the transfer itself finishes.
The boundary of this calculation
This excludes setup, retries and competing traffic; it is not a measured connection speed.
Inspect the example inputs and run the Python checks. They use only the published examples and do not read personal folders.