add method to total appointment sum