0; $quan = {18V}; $count = (CFO_RoundUpNearest($quan/{40P},1)); if($count <0){ $sheets=0; } else{ $sheets=$count; } 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; if(CFO_getUserId()==1){ CFO_ShowDebug(); }