calculate CoV