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 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;