When do you ovulate if your periods are irregular?

Sometimes my cycle lengths are consistent, sometimes they're not.