It's also possible to calculate with all data that returns numbers. You can calculate in the following way:

No calculation:

{{ event.fee }}

With Calculation:

{{ event.fee | plus: event.bookingsfee }}


You can use the following:

Plus

plus: number - Increase the amount with the given number.

# event.fee = 500
# event.bookingsfee = 50

{{ event.fee | plus: event.bookingsfee }}
Output: 550

Minus

minus: number - Decreases the amount with the given number.

# event.fee = 500
# event.bookingsfee = 50

{{ event.fee | minus: event.bookingsfee }}
Output: 450

Multiply

times: number - Multiplies the amount with the given number.

# event.total_tickets_sold = 850
# event.ticket_price = 35

{{ event.total_tickets_sold | times: event.ticket_price }}
Output: 29750

Divide

divided_by: number - Divides the amount with the given number.

# deal.tickets = 2
# deal.amount = 500

{{ deal.amount | divided_by: deal.tickets }}
Output: 250
Did this answer your question?