Found it ☺
Only one question, does anyone know if it is possible to use it trough dynamic link? So for example, if you place a dynamic link clip in a premiere timeline and stretch it to the length you want. That the expression takes the length of the clip.
currenttime = timeToFrames(t=time + thisComp.displayStartTime, fps=1.0 / thisComp.frameDuration, isDuration=false); //current tijd in frames
compduur = thisComp.duration*25; //tijdsduur compositie
var1 = compduur/100;
var2 = currenttime/var1;
[var2]