added a method so a merchant can calculate it total revenue