Assume you cast Delayed Blast Fireball, another creature then casts Dispel Magic on it. Would you be able to end your concentration--causing it to explode--as it is being dispelled? If so, do you do it before or after the other creature rolls their check, assuming they did not upcast Dispel Magic?
Delayed Blast Fireball:
A beam of yellow light flashes from your pointing finger, then condenses to linger at a chosen point within range as a glowing bead for the duration. When the spell ends, either because your concentration is broken or because you decide to end it, the bead blossoms with a low roar into an explosion of flame that spreads around corners.
Dispel Magic:
Choose one creature, object, or magical effect within range. Any spell of 3rd level or lower on the target ends. For each spell of 4th level or higher on the target, make an ability check using your spellcasting ability. The DC equals 10 + the spell’s level. On a successful check, the spell ends.