corrected totalCartCost calculation