When do you cut off a text conversation when building rapport with a girl?

Is it when they don't carry on the conversation, when it shifts into small talk, or when you feel their no longer interested? Or a different reason entirely?

Thanks,
C.