How to calculate the RFM score