you can renew your passport 6 months before RP expiry and you an pay 500 Qr fee to extend your stay outside the country up to one year,for clarification you can check with any Typing Centers around immigration Office in Graffa the better one is Al Rafa Typing Center on the same side of petrol station near to immigration round about towards Qatar Foundation........cheers