this is the official JS snippet to get realtime recommended value:
var genesis = 1388796189, // timestamp of NutCoin genesis block
ts = Math.round((new Date()).getTime() / 1000), // today's timestamp
years = years || (ts-genesis) / (60*60*24*365), // years since genesis
x = years,
magic = -0.0166667245722333,
divine = 0.5 * (1+Math.sqrt(5)),
e = Math.E,
t = 2.3,
pi = Math.PI;
var golden = divine + Math.pow(e, -x+t*pi);
console.log("NutLaw: "+x+" years elapsed since genesis block");
return 10 * (t/golden) + magic;
};
Usage:
console.log("Recommended value is $" + value);
What would be most helpful (and maybe added on the main nutcoin webpage) is a simple script to fetch current exchange rates for LTC and BTC, and calculate the current NutLaw value in terms of LTC and BTC.