How many days it takes to open demat account

What is the average time required to open a Demat account?,