0;
$quan = {18V};
if({40P} >0){
$count = (CFO_RoundUpNearest($quan/{40P},1));
} else{
$count=0;
}
if($count <0){
$sheets=0;
} else{
$sheets=$count;
}
$tmp=0;
switch({16P}) {
case 93:
$tmp = CFO_RoundUpNearest(($sheets*(CFO_Sections($sheets, "100|300|500", "3.10|3.05|3.00|2.95"))) + 60,0.05);
break;
case 88:
$tmp = CFO_RoundUpNearest(($sheets*(CFO_Sections($sheets, "100|300|500", "2.70|2.65|2.60|2.55"))) + 60,0.05);
break;
}
$FinalPrice = $tmp;