Go to the Immigration office next to Doha International Airport to find out. You will be able to extend up to 1 month or more if you are from one of the countries allowed visit visa upon entry. Bring QR100 with you for visa extension fees.