Advertisement
vlatkovski

how much years would it take

Oct 18th, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // how much years would it take for an iron mine going into a normal furnace to reach 25 quintillion dollars?
  2.  
  3. /*
  4. FOR THE CONTEST
  5. */
  6.  
  7. var val_1sec = 1  // 1 iron ore into a normal furnace per 1 second
  8. var sec = 60      // 1 minute
  9. var min = 60      // 1 hour
  10. var hr  = 24      // 1 day
  11. var d   = 365     // 1 year
  12.  
  13. var val_1yr = val_1sec*sec*min*hr*d // value after 1 year of waiting
  14. var val_req = 2.5e+19 // 25 quintillion
  15.  
  16. var result = val_req / val_1yr
  17.  
  18. alert("Value after 1 year: "+val_1yr+"\nHow much years it would take to get to 25 Qn: "+result+"\n("+val_req+" / "+val_1yr+")")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement