Clive Portman: code

ExpressionEngine addons for maths

Two useful plugins are Number Format and MX Calc mean you can avoid PHP. Here's an example of using them both together to calculate a 50% deposit for a booking to be sent to PayPal:

{exp:number_format decimals="2" parse="inwards"}{exp:mx_calc parse="inwards" expression="{booking-cost} / 2"}{/exp:number_format}