VISA Validity

Hello Guru,
I got a multiple entry 90 days validity visa. 30 days maximum stay visa, my visa got stampped on 1-07-2016 and my visa expires on 30-10-2016. but some issues my travel delayed. i Travelled to saudi on 08-08-2016. i did the one time exit the country on 04-09-2016 and re-entry 05-09-2016.coming 30-10-2016 is a 90th day .

how to caliculate the visa validity

Date of issue the VISA or Date of Entry in Saudi Please help me

Regards,
SNRaju

Date of issue of visa