Rotate Using Formula

Rotation is going beyond red lines