Calculate total after retriveing tax rate from JSON
<p>I have 1 select, 2 text inputs &amp; some JSON data in a form:</p>

<ul>
<li><strong>select input</strong>: List of Suppliers</li>
<li><strong>text input 1</strong>: Net Amount</li>
<li><strong>text input 2</strong>: Gross Amount</li>
<li><strong>JSON Data</strong>:contains the rates of various suppliers as <code>JSON</code> in <code>supplier_tax_rates</code></li>
</ul>

<p>I am calculating Gross Amount something like this(pseudo code):</p>

<pre><code>grossAmount = NetAmount + ((currently_selected_supplier.tax_percentage_charged / 100) * netAmount)
</code></pre>

<p>Here is the complete code:
<a href="http://jsfiddle.net/A9vmg/17/" rel="nofollow">Calculate total after retriveing tax rate from JSON</a></p>

<p>Now, this should work but it doesn't. I get NaN(not a number), means something is wrong. But I have trouble find where. </p>

<ul>
<li><a href="http://jsfiddle.net/A9vmg/17/" rel="nofollow"><strong>JSfiddle</strong></a></li>
</ul>
