OK – say you wanted it to rotate -30 over 5 frames, hold hold 15 frames, repeat forever. Something like this should do the trick:
rotateAmount = -30;
rotateFrames = 5;
holdFrames = 15;
f = Math.round(time/thisComp.frameDuration);
period = Math.floor(f / (rotateFrames + holdFrames))
phase = f%(rotateFrames + holdFrames);
rotateAmount * period + linear(phase,0,rotateFrames,0,rotateAmount)
Dan