How long does it take to open a demat account

How much time does it typically take to open a new Demat account?,