Automatic shop closing and opening toggle

Hi All,   I want to set an attribute as toggle which automatically toggles to shop close and shop open based on the timings given by the shop owner. For example, if the shop opens at 9:00 A M and closes at 5:00 PM, then user should see that shop is closed after 5 PM and shop is open after 9 AM tomorrow morning. It should toggle automatically only based on current time and time given by the user. I tried implementing using a calculated attribute, but I am unable to arrive at a solution. Please help me in resolving this 
1 answers

Hi Ramya

You could use a Scheduled Event which runs every hour (check if the time is 9AM or 5PM and accordingly set your toggle attribute)