The penalty value is multiplied with the number of hours that the song comes “too early”.
E.g. artist separation 5 hours, but artist has been played 2 hours ago => 3 hours early, multiplied with a penalty of e.g. 2 => 6 points added to penalty score.
This is done for artist, title and track, and all points are added.
The song with the lowest score wins.