Original: For example, if the big blind is $2 and there is a bet of $6 to a total of $8, a raise must be at least $6 more for a total of $14.
Simplified: D at this point can either fold, pay $20 (call player B) or raise $10 to a total of $30. Player A bets $5000.