method for card total