how to calculate numerator - Search