Let's say i have a database entry like this:
video_id | likes | dislikes
654 5 12
What i want to do is to transform the number of likes and dislikes into a 5 stars rating for google rich snippets.
Do you have any ideas? Some code?