
  <script type="text/javascript" src="https://huayang.com.my/main/wp-content/themes/theme/script/calc_common_function.js"></script>
  <script type="text/javascript" src="https://huayang.com.my/main/wp-content/themes/theme/script/calculator.js"></script>

  <form name="form1" id="form1" action="">
	<div class="row alcal">

    <div class="col-6">
      <strong>Purchase Price (RM)</strong>
      <input maxlength="7" size="15" class="inputc" name="txtPcPrice" id="txtPcPrice">
    </div>

    <div class="col-6">
      <strong>Loan Margin (%)</strong>
      <input maxlength="7" size="15" class="inputc" name="txtLoanMgn" id="txtLoanMgn">
    </div>

    <div class="col-6">
      <strong>Loan Amount (RM)</strong>
      <input maxlength="7" size="15" name="txtLoanAmt" disabled="" id="txtLoanAmt">
    </div>

    <div class="col-6">
      <strong>Interest Rate (% p.a.)</strong>
      <input maxlength="4" size="15" name="txtInterestRate" id="txtInterestRate">
    </div>

    <div class="col-6">
      <strong>Term (years)</strong>
      <input maxlength="2" size="15" name="txtTerm" id="txtTerm">
    </div>


    <div class="col-12 text-center cal-btn-wrap">
      <input type="button" name="Calculate" value="Calculate" onclick="CalculatePymt(form1)" class="btn csubmit" id="submit">
      <input type="button" name="Clear" value="Clear" onclick="submit_clear()" class="btn csubmit">
    </div>

    <div class="col-12 cal-result text-center">

      <div class="row">
        <div class="col-1 col-md-3"></div>
        <div class="col-10 col-md-6">

          <h4>Monthly Repayment *</h4>
          <input onfocus="ClearField()" maxlength="14" size="15" name="txtMthPymt" id="txtMthPymt" readonly>
          <p>If you would like to see the repayment schedule, click on the button below.</p>

          <input type="button" value="Show Table" onclick="showTable(form1)" name="button" class="btn csubmit">


        </div>
        <div class="col-1 col-md-3"></div>
      </div>


    </div>

  </div>
  </div>

  <script>
  jQuery(document).ready(function() {

  	jQuery('.inputc').each(function(){
  		jQuery(this).keyup(function(){
  			 calculateTotal();
  		});
  	});
  	function calculateTotal() {
  		if( jQuery('#txtPcPrice').val() != "" && jQuery('#txtLoanMgn').val() != "" )
  		{
  			var total = ( jQuery('#txtPcPrice').val() * jQuery('#txtLoanMgn').val()) * 0.01 ;
  			 jQuery('#txtLoanAmt').val( total );
  		}

      }
  });
  </script>


{"id":320,"date":"2019-10-23T07:08:31","date_gmt":"2019-10-23T07:08:31","guid":{"rendered":"http:\/\/huayang.com.my\/main\/\/?page_id=320"},"modified":"2019-10-30T10:48:59","modified_gmt":"2019-10-30T10:48:59","slug":"loan-calculator","status":"publish","type":"page","link":"https:\/\/huayang.com.my\/main\/buyer-guide\/loan-calculator\/","title":{"rendered":"Loan Calculator"},"content":{"rendered":"<p>[vc_row full_width=&#8221;stretch_row_content_no_spaces&#8221; el_class=&#8221;buyer-guide-banner-row&#8221;][vc_column][vc_column_text]<div id=\"buyer-guide-banner-wrap\">\r\n\t<div id=\"buyer-guide-banner\" style=\"background-image:url(https:\/\/huayang.com.my\/main\/wp-content\/uploads\/2019\/10\/loan-bg_01.jpg)\">\r\n\t\t<div class=\"banner-hidden-img\"><img src=\"https:\/\/huayang.com.my\/main\/wp-content\/uploads\/2019\/10\/loan-bg_01.jpg\" height=\"613\"><\/div>\r\n\t<\/div>\t\r\n\t<div class=\"banner-content\">\r\n\t\t<div class=\"container\">\r\n\t\t\t<div class=\"row\">\r\n\t\t\t\t<div class=\"col-sm-6 custom-breadcrumb-wrap\">\r\n\t\t\t\t\t<div class=\"custom-breadcrumb\">\r\n\t\t\t\t\t\t<p>Buyer's Guide<\/p>\r\n\t\t\t\t\t\t<h3>Loan Calculator<\/h3>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t\t<div class=\"col-sm-6\">\r\n\t\t\t\t\t<div class=\"buyer-guide-menu\">\r\n\t\t\t\t\t\t<ul>\r\n\t\t\t\t\t\t\t<li class=\"page_item page-item-236\"><a href=\"https:\/\/huayang.com.my\/main\/buyer-guide\/steps-to-own-a-home\/\">Steps to Own a Home<\/a><\/li>\n<li class=\"page_item page-item-310\"><a href=\"https:\/\/huayang.com.my\/main\/buyer-guide\/private-sector-loan-application\/\">Private Sector Loan Application<\/a><\/li>\n<li class=\"page_item page-item-312\"><a href=\"https:\/\/huayang.com.my\/main\/buyer-guide\/goverment-loan-application\/\">Goverment Loan Application<\/a><\/li>\n<li class=\"page_item page-item-314\"><a href=\"https:\/\/huayang.com.my\/main\/buyer-guide\/epf-withdrawal-procedure\/\">EPF Withdrawal Procedure<\/a><\/li>\n<li class=\"page_item page-item-316\"><a href=\"https:\/\/huayang.com.my\/main\/buyer-guide\/fic-guidelines\/\">FIC Guidelines<\/a><\/li>\n<li class=\"page_item page-item-318\"><a href=\"https:\/\/huayang.com.my\/main\/buyer-guide\/malaysia-my-second-home\/\">Malaysia, My Second Home<\/a><\/li>\n<li class=\"page_item page-item-320\"><a href=\"https:\/\/huayang.com.my\/main\/buyer-guide\/loan-calculator\/\">Loan Calculator<\/a><\/li>\n\t\t\t\t\t\t<\/ul>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\t\t<\/div>\r\n\t<\/div>\r\n<\/div>[\/vc_column_text][\/vc_column][\/vc_row][vc_row css=&#8221;.vc_custom_1571899034786{padding-top: 75px !important;padding-bottom: 0px !important;}&#8221;][vc_column][vc_column_text css_animation=&#8221;fadeIn&#8221;]<\/p>\n<h4 style=\"font-weight: 300;\"><span style=\"color: #b4181d;\">How much should you be paying for your home loan?<\/span><\/h4>\n<p>Complete the fields below to determine your monthly payments for your home loan.<br \/>\n*Please note that you do not have to use commas (example: type in 100000 and not 100,000)<\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row css=&#8221;.vc_custom_1572428649308{padding-bottom: 80px !important;}&#8221; bb_tab_container=&#8221;&#8221; smallbbresponsive=&#8221;.bb_custom_1572428649309{padding-bottom:0px!important;}&#8221;][vc_column][vc_column_text css_animation=&#8221;fadeInUp&#8221;]<\/p>\n\n<p>[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[vc_row full_width=&#8221;stretch_row_content_no_spaces&#8221; el_class=&#8221;buyer-guide-banner-row&#8221;][vc_column][vc_column_text][\/vc_column_text][\/vc_column][\/vc_row][vc_row css=&#8221;.vc_custom_1571899034786{padding-top: 75px !important;padding-bottom: 0px !important;}&#8221;][vc_column][vc_column_text css_animation=&#8221;fadeIn&#8221;] How much should you be paying for your home loan? Complete the fields below to determine your monthly payments for your home loan. *Please note that you do not have to use commas (example: type in 100000 and not 100,000) [\/vc_column_text][\/vc_column][\/vc_row][vc_row css=&#8221;.vc_custom_1572428649308{padding-bottom: 80px !important;}&#8221; bb_tab_container=&#8221;&#8221; smallbbresponsive=&#8221;.bb_custom_1572428649309{padding-bottom:0px!important;}&#8221;][vc_column][vc_column_text<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":233,"menu_order":19,"comment_status":"closed","ping_status":"closed","template":"template-buyer-guide.php","meta":[],"_links":{"self":[{"href":"https:\/\/huayang.com.my\/main\/wp-json\/wp\/v2\/pages\/320"}],"collection":[{"href":"https:\/\/huayang.com.my\/main\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/huayang.com.my\/main\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/huayang.com.my\/main\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/huayang.com.my\/main\/wp-json\/wp\/v2\/comments?post=320"}],"version-history":[{"count":14,"href":"https:\/\/huayang.com.my\/main\/wp-json\/wp\/v2\/pages\/320\/revisions"}],"predecessor-version":[{"id":5151,"href":"https:\/\/huayang.com.my\/main\/wp-json\/wp\/v2\/pages\/320\/revisions\/5151"}],"up":[{"embeddable":true,"href":"https:\/\/huayang.com.my\/main\/wp-json\/wp\/v2\/pages\/233"}],"wp:attachment":[{"href":"https:\/\/huayang.com.my\/main\/wp-json\/wp\/v2\/media?parent=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}