When to test ?

When do u test if periods are all over the place and unsure when u ovulate ???