How many iuis?

I have done 2 timed intercourse first one resulted in a miscarriage than did 2 <a href="https://glowing.com/glow-fertility-program">iui</a> and didn’t work. When should i move on to <a href="https://glowing.com/glow-fertility-program">ivf</a>?