I do remember 1 time that the immigrations' computation for 1 month is 28 days. I think it is better count the numbers of days you are out of Qatar from the date of your last departure to be sure your visa is still valid.