change dmg formula