Duha is a voluntary prayer in the forenoon. When it is prayed early, soon after sunrise, many people call it Ishraq; scholars differ on whether that is a separate prayer or simply the early part of Duha.
When it starts
Its time begins once the sun has risen clear of the horizon, about 15 minutes after the sunrise time on a timetable. Praying exactly at sunrise is avoided (see times when prayer is not allowed). Our city pages list this moment as “Ishraq (Duha begins)”.
When it ends
The time ends shortly before the sun reaches its highest point, a few minutes before Dhuhr.
The best time
Later in the morning is better, when the sun is high and the day has warmed. The hadith describes it as the time when the weaned camels feel the heat of the sun (Sahih Muslim 748).
How many rak‘ahs
The minimum is two. Four and eight are also reported from the Prophet's practice, prayed two at a time; many scholars set no upper limit.
A quick example
If sunrise is at 6:40 and Dhuhr at 12:10, Duha can be prayed from about 6:55 until a little before 12:05, and the best part is the later morning.