added a method so an invoice item can calculate its total