as far as i know, the company has to let you go 1 month after you give them notice. If you have finished training your replacement you are free to go. Talk with your management and make them understand that the new guy is ready to take over entierly