Add method to calculate user rating