If you are coming here without reading all training
Please read this article before, because it’s part of CFO API: Price, Quantity, Value, Weight, Points…

CFO has several built in functions that you can use in your formula
Built in functions are designed to help users in some calculations, but may be, if you are a more experienced user, you prefer to write your own code.

To use CFO included functions just write desired one into your formula with the correct syntax and using the parameters you need, like this example:

$FinalPrice = {41V} * CFO_iDiscounts($Price, $Quantity, "1|150|200", "0|15|30");

List of all built in functions
If you need to run at this point, please read at least, this built in function: CFO_ShowDebug