AFSimple_Calculate("SUM", new Array ("LineCalc1", "LineCalc2", "LineCalc3", "LineCalc4", "LineCalc5", "StudentLoan"));
A separate field needs to subtract the value from that calculation from 30,400:
event.value = ( 30400 -
You are using Acrobat Form Tool code, so unless you are making your form with Acrobat, I would use the syntax and languages of LiveCycle Designer.
Look in the scripting reference for the 'Sum' function and examples of how to write equations in LiveCycle Designer. The 'Scripting Reference' is under LiveCycle Designer's "Help" menu option.
FormCalc uses a simple Excel-like syntax for mathematical operations. Something like this is possible...
// form1.page1.subform1.Total::calculate - (FormCalc, client)
$.rawValue = 30400 - (LineCalc1 + LineCalc2 + LineCalc3 + LineCalc4 + LineCalc5 - StudentLoan)
Thank you Steve!