When do I text back? Texting etiquette

After they text me, how long before I’m supposed to text back? If i respond immediately, will I look desperate? Has modern dating changed how we communicate over the phone? How do we get from texting to a phone call?