Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

function nbYear(p0, percent, aug, p) { let n = 0; while(p0 < p) { p0 = p0 + Math.round(p0 * (percent/100)) + aug; n ++; } return n; }

function nbYear(p0, percent, aug, p) {
  let n = 0;
  while(p0 < p) {
  p0 = p0 + Math.round(p0 * (percent/100)) + aug;
  n ++;
  }

return n;
}
 
PREVIOUS NEXT
Tagged: #function #return
ADD COMMENT
Topic
Name
3+6 =