how to calculate mode - Search