JS is case-sensitive. You need to enter the field names EXACTLY as they appear in your form, so use "subtotal" instead of "Subtotal"...

Also, you should really make it a habit to check the JS Console for error messages. There's bound to be one there notifying you of this mistake. Go to Edit - Preferences - JavaScript and tick the option to show the console on warnings and errors.