Ad
  • Custom User Avatar

    you are the GREAT!!!
    but need to do floor()
    because the number of people cannot be fractional :)

    nbYear(a, b, c, d) => a >= d ? 0 : 1 + nbYear((a + a*b/100 + c).floor(), b, c, d);