If you want to use this with megabytes you can replace the code
Code:
$filesize = $_GET['filesize'];
with
Code:
$filesize = $_GET['filesize'] * 8388608;
Then use megabytes instead of bits in the url.
Code:
www.yoursite.com/download_time.php?filesize=38mb