title: How to calculate the time cost of a nested loop
body: <p>Is there a math formula that I can put in my Windows calculator to calculate the time cost of my nested loop?</p>
  
  <p>From what I read, I saw things like O(n) but I don't know how to put that in a calculator.</p>
  
  <p>I have a 300 levels nested loop, each loop level will go from 0 to 1000</p>
  
  <p>So it is like:</p>
  
  <pre><code>for i as integer =0 to 1000
  {
   //300 more nested loops, each goes from 0 to 1000
  }
  </code></pre>
  
  <p>I am assuming that 1 complete loop will take 1 second (i.e. the 300 levels from the top most loop to the inner most loop will take 1 second).</p>
  
  <p>How can I find out how many seconds it will take to complete the whole loop operation?</p>
  
  <p>Thank you</p>