Finished predicted rating algorithm