# Calculating File Transmission Time in HTML

Given an Internet connection of 56.6 kilobits per second (kbps), a file that is 22.25 MB in size will take about 59 min to transmit. This can be calculated by dividing the size of the file by connection or transmission speed. Both must be in the same unit, such as bits, kilobits, bytes, and megabytes. The speed of 56.6 kbps is the slowest that people use to connect to the Internet. The following formula can be used to calculate transmission time:

Transmission Time = size of file / lowest transmission speed

Before using the formula, all values are converted to the same unit. In this case, file size is converted to the unit of the transmission speed, that is, kilobits. To do this, 25.25 MB is simply multiplied by 1000 twice to convert it to bytes, then multiplied by 8 to convert to bits, and then divided by 1000 to convert to kilobits. This is written as (25.25 x 1000 x 1000 x 8)/1000, which gives 202,000 kilobits.

Using the formula gives:

Transmission Time = 202,000 kilobits / 56.6 kbps = 3568.91 s = ( 3568.91 / 60 ) min = 59.48 mm

Source: Sklar David (2016), HTML: A Gentle Introduction to the Web’s Most Popular Language, O’Reilly Media; 1st edition.