The link below will take you to a discussion in the archive that involves the "how to" on measuring carpet. First posted in 2004.
Measuring Carpet