I actually re-wrote the entire code and it works now. I am sure there is another way that is probably better and shorter but I am not an experienced coder. I am slowly learning. Now off to get the decimals, comma's and to get the other to round off is going to be difficult. Here is an example of the code I wrote so you can see what I was trying to do.
sum=(c5 * c6);
ledsum=(e5 * e6);
<input name="c5" style="background-color: #d6d6d6" onChange="totalpower()" />
<input name="c6" style="background-color: #d6d6d6" onChange="totalpower()" />
<input name="sum" value="">