Skip to content

Instantly share code, notes, and snippets.

@terrcin
Created July 24, 2013 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terrcin/6069196 to your computer and use it in GitHub Desktop.
Save terrcin/6069196 to your computer and use it in GitHub Desktop.
Works out how many seconds per handsets sale the Ubuntu Edge project needs from now on to succeed. http://www.indiegogo.com/projects/ubuntu-edge/x/1850818
finish = Time.new 2013, 8, 22, 7 # UTC
goal = 32000000
current = 3762188 # <= update this manually
remaining = goal - current
cost = 830
puts "Seconds per handset sale: #{((finish - Time.now.utc) / (remaining / cost)).round(2)}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment