what about this?

def total_retail_price
  @@total_retail_price ||= self.vehicles.sum(:retail_price) || 0
end