This will depend on how the system is armed.
If you armed Stay or Away, you will have 30 seconds to disarm the system before the alarm sounds.
if you armed Stay with No Entry Delay, the alarm will sound immediately after you open the door or window.