Yay thanks. But i was looking for a solution, where i can move the layer and the animation is connected to the inpoint of the layer. I did request the same question in a germen forum and got answer from Mylenium:
thisComp.layer("XYZ").transform.rotation.valueAtTime(time-thisLayer.inPoint)
https://forums.adobe.com/message/10641976#10641976
but thanky anyway for your answer, it is helpful as well ☺
trying to learn and notice more expressions 🙂