This is far from a complete answer, something I did a while ago to practise. Maybe you can modify it to make it work for you.
Usually when I don’t understand what values my variables have I put the expression in a text layer to see what’s going on!
…or maybe someone will give you a better answer later!
win=2;
out=8;
rise=1;
a=100;
if (time >win && time <= out ){
a=ease(time,win, win+rise, 0 ,a);
wiggle(1, a);
}
else if (time > out ) {
a=ease(time, out, out+rise, a ,0)
wiggle(1, a)
}
else
transform.position
http://www.ardillamedia.com