calculate dmq in terms of base class