Stop music at any given time. Works even your device is on sleep mode. Just make sure your “Clock” app Timer is set to “Stop Playing” when the timer ends.
This shortcut lets you choose what time is the alarm, then lets you choose how many times it repeats with 5 minute intervals each. The 5 minute interval can be changed by replacing the operand in the calculate function of the shortcut.