title: Divide a function value by a number
body: <p>I want to be able to take the value from the calcOrderTotal input and then divide it and display the divided output in another input (for example, to show the Order Total price, and then what the order total 36 monthly lease price would be).  I sort of attempted to do it with the "calc36Month" function, but I know it's not right.</p>
  
  <pre><code>function calcOrderTotal() {
  
  var orderTotal = 0;
  
  var productSubtotal = $("#product-subtotal").val() || 0;
  var serverPrice = $('.server-radio:checked').val() || 0;
  var equipmentPrice = $('.equipment-radio:checked').val() || 0;
  var underTotal = $("#under-box").val() || 0;
  
  var orderTotal = parseFloat(CleanNumber(productSubtotal)) + parseFloat(CleanNumber(serverPrice)) + parseFloat(CleanNumber(equipmentPrice));    
  
  $("#order-total").val(CommaFormatted(orderTotal));
  
  $("#fc-price").attr("value", orderTotal);
  
  }
  </code></pre>
  
  <p>The calcOrderTotal function is then redirected to this HTML input and displays a dollar value (this does work):</p>
  
  <pre><code>&lt;input type="text" class="total-box" value="$0" id="order-total" disabled="disabled" name="order-total"&gt;&lt;/input&gt;
  </code></pre>
  
  <p>I want to be able to take the OrderTotal dollar value and divide it by 36 months and input the 36 month lease value into another input.  Here is an example of what I'm looking for (I know this does not work):</p>
  
  <pre><code>function calc36Month() {
  
      var 36Month = 0;
  
      var orderTotal = $("#order-total").val() || 0;
  
      var 36Month = parseFloat(CleanNumber(orderTotal)) / 36;    
  
      $("#36-monthly-total").val(CommaFormatted(36Month));
  
      $("#fc-price").attr("value", 36Month);
  
  }
  </code></pre>
  
  <p>How can I do this?</p>