example for calculating checkout totals