Normally, it takes only 30 minutes at most to reset it. In the event that it would take longer, like what happened here, you can press and hold both on the volume down button and power key for about 10 seconds.
The phone should then reboot. If the phone would still be stuck to spinning gears, here is a hardware reset that you need to press.
Input these keys on the following sequence, press them one key at a time:
Volume up
Volume down
Power key
Volume down
It worked for me