add client-side quantity cacluations for cost