30 days is considered a month in Qatar, therefore, exit must be made by 15th Aug. Otherwise, you may be penalized at airport during exit.