How To Calculate Diversity