Free Content and Articles - http://www.contentmart.com
File Transfer Time Calculator
http://www.contentmart.com/articles/5399/1/File-Transfer-Time-Calculator/Page1.html
ContentMart Editor

 
By ContentMart Editor
Published on 04/3/2002
 
The File Transfer Time Calculator can be used to calculate approximate download times for files and your Web pages.

File Transfer Time Calculator
The File Transfer Time Calculator can be used to calculate approximate download times for files and your Web pages.

function doCalc(frmFTC){ var bytes = 0 var trans = 0 bytes = frmFTC.inpFileSize.value * ((frmFTC.selFileUnits.options[0].selected == true) + ( (frmFTC.selFileUnits.options[1].selected == true)*1024) + ((frmFTC.selFileUnits.options[2].selected == true) * 1024*1024)) trans = frmFTC.selTransSpeed.value / ( (frmFTC.selTransUnits.options[0].selected == true) + ( (frmFTC.selTransUnits.options[1].selected == true) * 8)) frmFTC.inpEstTime.value = getTime(Math.round(bytes/trans)) } function getTime(sec){ var vHrs = 0 var vMins = 0 var vSecs = 0 var vEstTime = " " if(sec<1) return ("Less than one second") vHrs = Math.floor (sec/3600) vMins = Math.floor((sec - (vHrs * 3600))/60) vSecs = Math.floor (sec - ((vHrs*3600) + (vMins * 60))) if(sec > 86400) return ("More than 24 Hours") else if(sec>=3600) vEstTime = vHrs + " Hours " + vMins + " Minutes " + vSecs + " Seconds " else if(sec<3600 & sec>=60) vEstTime = vMins + " Minutes " + vSecs + " Seconds " else vEstTime = "Seconds: " + vSecs return(vEstTime) } function setCursor(){ document.frmFTC.inpFileSize.focus() document.frmFTC.inpFileSize.select() }

File Size

Modem Speed

Estimated Transfer Time