Calculate rating

Redundant `self` detected.