Visit Visa Validity

I have a basic question about counting the validity of the visit visa. Is it counted from the date of arrival in Kingdom or from the date of it stamped in home country?
My understanding is, if the visa was approved for 30 days, am I allowed to live in Kingdom for 30 days from the date of arrival. Please correct me if I am wrong.

You are right!