calculate dhd in terms of base class