Irregular cycles

How did you track ovulation with irregular cycles? I get my period every month but sometimes my period comes early or late. And how often should I have sex?