How much previous interaction is the best before asking for a date. Usually when I ask for a date right away I get ghosted. So, in what mood should I get, or how much interaction should I do before asking a girl out?

Also, what is the best way to get to a good mood in the conversation where you can ask a girl out and have higher chances of achieveng it?