calculate rfm value