How do you figure out your cycle length?

I'm clueless and I think I put it wrong when it asked me on here.

It's not the 6-7 day one.

It's the 20-31 day type one.

Do I count days from the end of my period to the beginning of the next or...?