Adding function to get rate of a given stat