Can you please clarify on the following subjectDue to irregular period problem , doctor prescibes medicine due to which cycle starts but is like spotting on and off. Doctor says its not menstrual and is spotting. Since 14 days this is going on.Now there is signicant flow. So is this haez. where does one stand in haez vs istehaza.If ghusl is to be done then what niyyat and for fasts how does ruling of istehaza work

if it countinious for three days without stop whole 10 days are haiz and after 10 days are istehaza.

so in 10 days you should leave the fast and then take the fast
and in kaseera and mutawasseta condition you have to take a bathe ( gusl ) in the night after fast.