how to calculate consistency - Search