I need a vbscript function created (to run within ASP Classic) that can take a file size (in megabytes) as an input and output how long it will take to download the file using the following four internet connection speeds:
Dialup (56K): 3.2 minutes
DSL/Cable (256K): 2.1 minutes
DSL/Cable (756K): 1.1 minutes
T1 (1.5M): 30 seconds
The output should be in the format listed above using a line break between lines (<br />).
If the time to download is less than 1 minute, it should be listed in seconds. For decimals in minutes, just use one sig figure to the right of the decimal.
The script should work for all file sizes, such as 0.1MB, 1MB, 10MB and 100MB. Please make sure the MB is validated as a number.