Calculate Rotation

Calculate Rotation