Simple arithmetic says it doesn't make any difference.

Let's assume that interest did accrue.

$1000 deposit + $50 interest = $1050.

Damages $500.

Apply the interest first, leaves damages...