from math import exp def seuil(): t=0 puissance=120 while puissance>=60: t=t+0.1 puissance=120*exp(-0.14*t) return t