How long a period is

So this might be a stupid question but I don't get how to count the length of my period. It's usually 6 days so do you subtract the amount of the flow from the month and that's the length?