July month made investors richer by Rs 22.71 lakh crores from the stock market