Expacts Duration of Stay outside Qatar

Hi,
I need urgent suggestion. If anyone is out of doha since 06 months, when will the 6 month finally ends. Either on mid night 11:59 PM after completion of 180 days or 11: 59 AM after completion of 179 days.
As i am hearing different opinion as some says person need to come back on 179 and some says it can be before 180 days 11:59 PM
Pls advice...
You can use the Metrash Application to track the number of days you are outside of Qatar. I think it is till 180th day mid-night counted, after that penalty may apply based on circumstances. But why risk when you can come early?