The rule in plain words
If you become pure before Fajr in Ramadan, you must fast that day. But in the Hanafi school there is a condition. When the bleeding stopped, there had to be enough time left before Fajr to make ghusl and say the opening takbir of prayer.
The reason is that the time you need for ghusl is still treated as part of your hayd. If that time runs past Fajr, you were still in hayd when the fasting day began, and a fast cannot start in hayd.
In flowdays that time is 15 minutes. An Islamic scholar set this figure for us, and it is the same figure used for prayer.
