how to calculate variation - Search