Hinge modelling

Hey guys,
I try to model this little box and do not understand how I can model the hinge.

I tried to make a rocketlike shape and blend it into the box, but it seems more complicated to me. I dont get it.
I also tried to sketch some things on how it might work…

Kind_dose.3dm (1.6 MB)

Thanks for the help!