Update Dmg calculation