Almost all of the sigs have the incorrect tours being reported. There are a few that have it correct but those are all locked so you cant see the code. Would someone mind sharing the correct code?

here is what most are using

//BorderColor


var BorderColor = function(Tours)
{
var BorderColor = '';
if (9<Tours)
BorderColor = 'Gold';
else if (6<Tours)
BorderColor = 'Silver';
else if (3<Tours)
BorderColor = 'Bronze';
else if (0<Tours)
BorderColor = 'Grey';
else
BorderColor = 'Non';
return BorderColor;
}

var ToursCount = function(kit)
{
var KitScore = p.stats.kits[kit].score;
if(KitScore > 50000)
{
var Tours = Math.floor(KitScore / 50000);
if ((KitScore - (50000*Tours)) < 0)
Tours--;
else if(Tours > 12)
Tours = 12;
}
else
Tours = 0;
return Tours;
};
This results in the tour count being one behind the actual and it does not report or show the 12th tour pin.