International Simulation Football League
*Agent Tesla Designs A Dispersal Draft - Printable Version

+- International Simulation Football League (https://forums.sim-football.com)
+-- Forum: Community (https://forums.sim-football.com/forumdisplay.php?fid=5)
+--- Forum: Media (https://forums.sim-football.com/forumdisplay.php?fid=37)
+---- Forum: Graded Articles (https://forums.sim-football.com/forumdisplay.php?fid=38)
+---- Thread: *Agent Tesla Designs A Dispersal Draft (/showthread.php?tid=23395)

Pages: 1 2 3


*Agent Tesla Designs A Dispersal Draft - 37thchamber - 07-10-2020

(07-07-2020, 02:41 PM)KoltClassic Wrote:If my math is correct, this is a $362,288,300 media. Well done.
my calc tool has it at 360,173,000 including double media bonus

though tbh i dont know if the media payout formula has changed, or if i missed something in the function

Code:
function calcMediaPay(articleLength) {
     
 // calculate media pay based on tier values
     if (articleLength <= 400)
     payout = articleLength * 1450;
 else if (articleLength <= 600)
     payout = (1450 * 400) + ((articleLength - 400) * 1620);
 else if (articleLength <= 1000)
     payout = (1450 * 400) + (1620 * 200) + ((articleLength - 600) * 1850);
 else if (articleLength <= 1500)
     payout = (1450 * 400) + (1620 * 200) + (1850 * 400) + ((articleLength - 1000) * 1890);
 else if (articleLength <= 2000)
     payout = (1450 * 400) + (1620 * 200) + (1850 * 400) + (1890 * 500) + ((articleLength - 1500) * 1850);
 else if (articleLength <= 2500)
     payout = (1450 * 400) + (1620 * 200) + (1850 * 400) + (1890 * 500) + (1850 * 500) + ((articleLength - 2000) * 1720);
 else
     payout = (1450 * 400) + (1620 * 200) + (1850 * 400) + (1890 * 500) + (1850 * 500) + (1720 * 500) + ((articleLength - 2500) * 1650) + 400000;
 
 return payout;
 
}