title: Javascript Fees calculate
body: <p>I want to make Stripe.com fee calculator by Javascript.
  Stripe fee: 2.9% + 30¢ </p>
  
  <p>I made that: the value we want is (result),
  Price is (num1),
  30 cent is (num2),
  %2.9 is (num3),</p>
  
  <p>Please check the code below what is wrong with it?
  Please help.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function multiplyBy() {
      num1 = document.getElementById("firstNumber").value;
      num2 = 0.3;
      num3 = 0.971;
  
      document.getElementById("result").innerHTML = num1 + num2 / num3
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form&gt;
    Value : &lt;input type="text" id="firstNumber" /&gt;&lt;br&gt;
    &lt;input type="button" onClick="multiplyBy()" Value="GO" /&gt;
  &lt;/form&gt;
  &lt;p&gt;The Result is : &lt;br&gt;
  &lt;span id = "result"&gt;&lt;/span&gt;
  &lt;/p&gt;</code></pre>
  </div>
  </div>
  </p>