• Practice
  • About 14 min
  • 5 practice questions

Cloud numerical problems: bandwidth, storage, billing and downtime

Solve the four standard cloud calculations: transfer time from speed in bits, number of files that fit, usage-based bills and allowed downtime.

If something looks wrong, please tell us.

Cloud numericals look different but use a few simple steps. Almost every error comes from units: bits against bytes, MB against GB, minutes against hours. This lesson gives a routine for each type with worked examples. All figures are invented for practice.

Type 1: transfer time

Network speed is given in bits per second and file size in bytes. Convert the file to bits (multiply bytes by 8), then divide by the speed. Time = size in bits / speed in bits per second. Converting the other way, a line of 90 Mbps carries 90 / 8 = 11.25 megabytes per second.

Worked example 1

A file of 600 MB is uploaded at 12 Mbps. Size in megabits = 600 x 8 = 4,800. Time = 4,800 / 12 = 400 seconds, which is 6 minutes 40 seconds (400 / 60 = 6 remainder 40).

Type 2: how many files fit

Convert the capacity and the file size into the same unit, then divide and take the whole number. Using the convention 1 GB = 1024 MB and 1 TB = 1024 GB: 2 TB = 2 x 1024 x 1024 MB = 2,097,152 MB.

Worked example 2

How many 4 MB photos fit in 2 TB? Photos = 2,097,152 / 4 = 524,288. There is no remainder, so no partial photo is lost. If the photos were 5 MB, then 2,097,152 / 5 = 419,430.4 and only 419,430 whole photos fit.

Type 3: usage bills

Bill = number of units x time x price. Multiply every factor: servers, hours and rate. Subtract any free allowance before charging.

Worked example 3

A team runs 8 virtual servers for 10 hours at Rs 5 per server per hour. Cost = 8 x 10 x 5 = Rs 400. If 3 of the servers are switched off after 4 hours, the cost drops: 8 servers for 4 hours = 8 x 4 x 5 = 160, plus 5 servers for 6 hours = 5 x 6 x 5 = 150, giving Rs 310.

Type 4: allowed downtime

Allowed downtime = (100 - availability) percent of the total time. For a 30-day month the total is 30 x 24 x 60 = 43,200 minutes.

Worked example 4

A service promises 99.5 percent availability in a 30-day month. Allowed downtime = 0.5 percent of 43,200 = 0.005 x 43,200 = 216 minutes, which is 3.6 hours. At 99 percent it would be 432 minutes, twice as much.

Worked example 5: mixed check

A 2 GB video is uploaded at 16 Mbps. Size in MB = 2 x 1024 = 2,048. In megabits = 2,048 x 8 = 16,384. Time = 16,384 / 16 = 1,024 seconds, about 17 minutes 4 seconds (1,024 / 60 = 17 remainder 4). Using 1000 instead of 1024 would give 1,000 seconds, so the convention matters; use the one the question states, and 1024 when it is silent.

Convert first, then calculate: bytes x 8 = bits; GB x 1024 = MB; downtime = (100 - availability) percent of total time.

Traps to avoid

  • Dividing a file in megabytes directly by a speed in megabits.
  • Forgetting the free allowance in a bill.
  • Giving a fraction of a file when the question asks for whole files.
  • Mixing minutes and hours in downtime.

Key takeaways

  • Speeds are in bits per second; file sizes in bytes.
  • Use the same unit before dividing, and give whole files only.
  • Subtract free allowances before multiplying by price.
  • A one percent change in availability changes allowed downtime a lot.

Check your understanding

  1. 1. How long does a 250 MB file take at 20 Mbps (1 byte = 8 bits)?

    1. 12.5 seconds
    2. 100 seconds
    3. 50 seconds
    4. 1,000 seconds
    Show answer

    Answer: B. 250 x 8 = 2,000 megabits. 2,000 / 20 = 100 seconds. The value 12.5 forgets to convert bytes to bits.

  2. 2. How many 3 MB photos fit in 1.5 GB (1 GB = 1024 MB)?

    1. 512
    2. 500
    3. 1,536
    4. 4,608
    Show answer

    Answer: A. 1.5 GB = 1.5 x 1024 = 1,536 MB. 1,536 / 3 = 512 photos. The figure 500 uses 1000 instead of 1024.

  3. 3. 3 servers run for 10 hours at Rs 6 per server per hour. What is the cost?

    1. Rs 19
    2. Rs 60
    3. Rs 180
    4. Rs 360
    Show answer

    Answer: C. 3 x 10 x 6 = Rs 180. Rs 360 would need 20 hours.

  4. 4. A service promises 99 percent availability in a 30-day month. What is the allowed downtime?

    1. 43.2 minutes
    2. 216 minutes
    3. 4,320 minutes
    4. 432 minutes
    Show answer

    Answer: D. Total = 43,200 minutes. One percent of 43,200 = 432 minutes. 43.2 minutes would be for 99.9 percent.

  5. 5. A connection is rated 90 Mbps. About how many megabytes can it carry per second?

    1. 11.25
    2. 720
    3. 90
    4. 8
    Show answer

    Answer: A. Divide bits by 8: 90 / 8 = 11.25 megabytes per second. Multiplying by 8 would give 720, which converts the wrong way.

Privacy · Terms · Refunds · Delivery