No, it won't work after 5 days to the maximum.
If its already 30-40 days, then your wife is already pregnant. Terminating at that stage would be called abortion and ABORTION IS ILLEGAL IN QATAR.