Skip to content

Instantly share code, notes, and snippets.

@casparkleijne
Created July 23, 2010 07:55
Show Gist options
  • Save casparkleijne/487155 to your computer and use it in GitHub Desktop.
Save casparkleijne/487155 to your computer and use it in GitHub Desktop.
...........................//
geschattebesparing : function () {
var p, l, j, v, t, result;
/* using single char vars to keep the calculation short */
p = config.jaarlijkseprijsstijgingelektriciteit;
l = config.levensduurpanelen;
j = helpers.jaarlijkseopbrengst();
v = helpers.vermogenpanelen();
t = config.prijsperkWh;
result = ((Math.pow((1 + p), l) - 1) / p) * (t * j);
return result;
}, //....................................
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment