Help with function which includes points based system

Hi guys and @filip, i’m doing a side project trying out some techniques from within this course and others and I was hoping someone could guide me in the right direction.

I’m looking at creating a function which will add a ranking system for items within an auction site based on likes, dislikes and comments.

I’ve learned so much from the academy so far and feel i’ve come a long way since I first started but i’m struggling on this. If anyone could advise any techniques or guide me to learning material on how to do this it would be so much appreciated.