calc the sum of cart and displays it