Hi Andrei,
lot of thanks for your reply.
I also came on a similar result after I post that. But I start first to turn the values in seconds.
I think your calculation hold a frame 3 frames long. Its not really a frame rate Frames/Sec.
I the end I think this is good and short result .
fRate = 6;
fps = 1/thisComp.frameDuration;
fRateSec = framesToTime(fps/fRate, fps);
pt = fRateSec*Math.floor(time/fRateSec);
a = linear(pt, inPoint, outPoint, [0,0], [500,0]);
b = linear(time, inPoint, outPoint, [0,0], [0,200]);
position + a + b;