def capital_double (capital, interet): montant = capital n = 0 while montant <= 2 * capital: montant = montant + interet n = n + 1 return n