Bout getting pregnant

How do you know when your fertile and ovulating if your period is irreagler and your period comes between the 20th and 23rd