Options multiply the commission value with the multiplier and when they expire out of the money, only half the commission is deducted.

If the commission is more complex, calculate it by script and set it before you enter the position.