The CBL
Contract calculation - Printable Version

+- The CBL (http://www.the-cbl.com/mybb)
+-- Forum: Official CBL Business (http://www.the-cbl.com/mybb/forum-1.html)
+--- Forum: General Discussion (http://www.the-cbl.com/mybb/forum-3.html)
+--- Thread: Contract calculation (/thread-10.html)



Contract calculation - jcbarr - 04-23-2020

Whipped up a little app that calculates estimated contracts for batters.

Don't know if it will ever get used, but I enjoy doing this crap, so here is the link if anyone is interested at all.

http://thecbl.ddns.net/war.php


RE: Contract calculation - jcbarr - 04-24-2020

Still working on this. Need to create some rules to handle guys that haven't had many ABs or IPs. Got one pitcher that threw 1 inning and it says he should be worth 10 million, lol


RE: Contract calculation - jcbarr - 04-24-2020

Formula for batters;

Code:
$constant = $ab / 162;
    $contract = (($opsplus * $ovalue) * 100) * $constant;
    if ($contract < '250000') {
        $contract = 250000;
    }

Formula for pitchers;

Code:
    $constant = $ip / 162;
    $contract = (($value / $fip) * 45000) * $constant;
    if ($contract < '250000') {
        $contract = 250000;
    }