calculate rating added