In the case of haydh, the maximum number of days that you do not pray/fast would be 10 days, depending on the circumstances you are in.
If your blood is continous, then you will need to find out where during this period is your haydh days, and the rest being istihadhah. With the istihadhah days, depending on how much blood there is, you will still be able to pray and fast.
Please familiarise yourself with the rulings of haydh/istihadhah, and below is a presentation that could help you towards this, in shaa Allah:
And Allah knows best.