How long can u be on clomid ??

I have been using clomid since 2018

Started with 50 mg then increased to 100 mg this year. Done well over 20 cycles I think , is that safe to do ? What will be my next step ? Thanks