This is not correct syntax:
(500-"PurchaseTotal");
If you want to use the value of the field with that name, you need to use something like this:
(500-Number(this.getField("PurchaseTotal").value));
This is not correct syntax:
(500-"PurchaseTotal");
If you want to use the value of the field with that name, you need to use something like this:
(500-Number(this.getField("PurchaseTotal").value));