def nb_jours(): j=1 u=50 S=50 while S<2000: u=0.98*u S=S+u j=j+1 return j