If you haven't signed a contract, probably you're still under probation. The notice period is usually 2 weeks.

And if you owe them money, you better pay them back if you want your exit permit approved.