If you are taking on arrival visa, then you can do it immediately but if you are applying for visit visa, then 3 months have to be passed from the date of exit