Ok, last chance 'cause I'm off home:

=IF($C7<>$A$3,"",IF($D7>$C$3,($D7-$C$3)*$E$3,0))

?