Best answer is to give formal resignation letter and wait for the notice period as stated on you contract (usually one month).