It can be before ur wife will be coming back,.. But its better to do it before the six months...so if in case, there is problem, ya still have the time to call her back... Just go to the airport immigration dept..fill in the form there, attach ur PP copy and urs wife PP copy, pay 500 by atm card and the job is done..!