' +
'' +
'
';
}
document.getElementById('sc-bars').innerHTML = html;
var weakest = factors[0];
for (var j = 1; j < factors.length; j++) {
if ((factors[j].val / 5) * factors[j].w < (weakest.val / 5) * weakest.w) weakest = factors[j];
}
document.getElementById('sc-insight').textContent =
'Your scorecard is ' + pct + '% of the benchmark → ' + fmt(adjusted) + ' valuation. ' +
'Biggest lever: ' + weakest.label.toLowerCase() + ' (' + weakest.val + '/5). ' +
'Improving it by 1 point adds ~' + fmt(base * weakest.w * 0.4) + ' to your valuation.';
}
calcVC();
calcRev();
calcScore();