Periods

Does it matter if your period is long like 10 days , will your periods still be every 30 days if that regular for you ?? Or is it the longer the period your cycle goes 30 -40 days cause u have a long period??