Problems with SUM() in my Shopping Cart

I’m trying to make an e-shop: ( this is a simplify text )

I have a product collection:

Product = new Mongo.Collection(“product”);
title - price - image

in my shopTemplate i run #each products with a quantity input and a “Buy” button
This will be inserted in a selectedProducts collection:

SelectedProducts = new Mongo.Collection(“selectedProduct”);
image - tittle - price - quantity - subtotal

in my shoppingcartTemplate i run #each selectedProducts with “+” and “-” buttons for the
quantity and an update button( update subtotal accor. to quantity changes)and of course an delete btn

when i render this in my shopping cart, it will look like this

image - title - price -"+" quantity “-” - subtotal - “update” - “delete”
image - title - price -"+" quantity “-” - subtotal - “update”- “delete”
image - title - price -"+" quantity “-” - subtotal - “update”- “delete”
image - title - price -"+" quantity “-” - subtotal - “update”- “delete”
image - title - price -"+" quantity “-” - subtotal - “update”- “delete”
image - title - price -"+" quantity “-” - subtotal - “update”- “delete”

Now my question is: How do I get the sum() of the subtotals

I other words I need a totalBuy.value to use in my order collection for tax calculations etc.