Rectangular cut around circular surface problem

Hi guys i have question for you. I want know how to create this kind of cut in SW. I have tried with Sweep-Cut, Lofted-Cut but it gives error about self-intersecting geometry. So i attached pics so you maybe could help me

Thanks in advice.

SolidworksParts And Features