title: Calculating remaining time of upload
body: <p>I'm using the Uploadify plugin to allow users to upload files, and I have the progress bar working. Now I want to give the user an estimated time until completion, but I'm unsure how to calculate it using Javascript.</p>
  
  <p>Assume I have the following variables: <code>uploadSpeed</code> (in kb/s), <code>timeStarted</code> (a Javascript date object?), <code>fileSize</code> (size of the file in bytes). How can I calculate a countdown until the file is fully uploaded?</p>