If your wife have arrived in Qatar on Visit Visa. You have to extend the visit visa before completion of one Month (30 Days). A plenty charge of 200 QR / Day will be applicable if she stays beyond that date.

If you wish to leave the country in august, you still can extend her visit visa till august which will cost 200 QR / Months.

Hope this will help