A quick calculator, inspired from http://danielcorin.github.io/blog/2013/07/23/qc/