This calculation is based on the formula I found in this forum post.


Have a question, comment or feedback? Contact me by email!

"); $(".remove-result-btn").click(function() { chainsPerDay.splice($(this).attr("data-result-id"),1); instances.splice($(this).attr("data-result-id"),1); showResults($("#difficulty").val(), xpmToBtc, btcToUsd); }); $(".result-instances").change(function() { instances[$(this).attr("data-result-id")] = parseInt($(this).val()); showResults($("#difficulty").val(), xpmToBtc, btcToUsd); }); } } var xpmToBtc; var btcToUsd; var chainsPerDay = new Array(); var instances = new Array(); $.when( $.getJSON("//anty.info/primecoin/price/btc", function(price) { xpmToBtc = parseFloat(price); }), $.getJSON("//anty.info/bitcoin/price/usd", function(price) { btcToUsd = parseFloat(price); }), $.getJSON("//anty.info/primecoin/difficulty/now", function(difficulty) { $("#difficulty").val(parseFloat(difficulty)); }) ).then(function() { $("#calculator").submit(function(event) { chainsPerDay.push(parseFloat($("#chainsperday").val())); instances.push(1); showResults($("#difficulty").val(), xpmToBtc, btcToUsd); event.preventDefault(); ga('send', 'pageview'); }); $("#difficulty").change(function() { showResults($("#difficulty").val(), xpmToBtc, btcToUsd); ga('send', 'event', 'input', 'change', 'difficulty'); }); $("#refresh-difficulty").click(function() { $.getJSON("//anty.info/primecoin/difficulty/now", function(difficulty) { $("#difficulty").val(parseFloat(difficulty)); showResults($("#difficulty").val(), xpmToBtc, btcToUsd); }); ga('send', 'event', 'button', 'click', 'Refresh difficulty'); }); }); $("#chainsperday-helper").popover({title: "How to get \"chains per day\"", content: "
  1. start primecoin-qt
  2. open the menu Help > Debug window
  3. open the Console-tab
  4. enter \"getmininginfo\" in the textbox at the bottom
  5. Copy the value of \"chainsperday\"
", html: true, container: "body", trigger: "click", placement: "auto right"}); // track how successful the popover helps the user var hasReadPopover = false; var hasReadPopoverTracked = false; $("#chainsperday-helper").on("shown.bs.popover", function() { hasReadPopover = true; }); $("#chainsperday").change(function() { if (hasReadPopover & !hasReadPopoverTracked) { ga('send', 'event', 'input', 'change', 'chainsperday after popover'); hasReadPopoverTracked = true; } }); });