<div class="roundPoints"><?php echo $value->roundPoints; ?> </div> </div> <?php } ?> </div> </div> <div id="timelineWrap"> <?php $max = $allAnswers->getMax(); $min = $allAnswers->getMin(); if ($max - $min == 0) { $max = $allAnswers->correctAns->value * 2; } $rounding = (strlen($max) - 3) * -1; if ($rounding > 0) { $rounding = 0; } //echo "sdfd".$max; $reg0 = round($min, $rounding); $reg1 = round(($max - $min) * 0.25 + $min, $rounding); $reg2 = round(($max - $min) * 0.5 + $min, $rounding); $reg3 = round(($max - $min) * 0.75 + $min, $rounding); $reg4 = round($max, $rounding); $correctLoc = ($allAnswers->correctAns->value - $reg0) / ($reg4 - $reg0);