How can I calculate the rotation for this?

I thought itd be more simpler :confused: