var t = getField(“Price”).value;
var d = getField(“Deposit”).value;
event.value = t - d;
but it is not working.
You're using non-standard quotes. Use only straight quotes, either doube ( " ) or single ( ' ).