Why wholesale price index is considered in calculating the inflation rate not the consumer price index?
To what are you referring? I don’t know anyone who uses the wholesale price index in calculating _the_ inflation rate. I can’t even imagine which of the many measures “the” inflation rate would be. There are multiple inflation rates and different ones are used for different purposes. For example, it is the CPI that is used to adjust Social Security payments in the U.S. Ditto for the U.S.