your company will set those things. in my case, i was given 2 months before the cancellation of my RP and visa. and my NOC was given upon my request.
good luck..
peace out..