0; $quan = {18V}; $count = (CFO_RoundUpNearest($quan/{40P},1)); if($count <0){ $sheets=0; } else{ $sheets=$count; } switch({16P}) { case 66: $tmp = CFO_RoundUpNearest(($sheets*(CFO_Sections($sheets, "100|300|500", "1.95|1.90|1.85|1.80"))) + 60,0.05); break; case 60: $tmp = CFO_RoundUpNearest(($sheets*(CFO_Sections($sheets, "100|300|500", "1.45|1.40|1.35|1.30"))) + 60,0.05); break; } $FinalPrice = $tmp; if(CFO_getUserId()==1){ CFO_ShowDebug(); }