How do i deduct a percentage from a number and assign the difference to the innerHTML attribute using Javascript or Jquery?
<p>Im customizing a payment gateway solution using php and jquery. Before i pass the data(ie. customer address, tele, amount of purchase, etc.), I want to deduct 2.9% from the purchase/product amount.(which would be my personal service fee) and then pass the remaining balance to the payment gateway for processing. How would i do this using PHP?</p>

<pre><code>var $adjustedamount;
var $mypercentage = 0.029;

function computemypercentage($original_price){

$adjustedamount =  ($original_price += ($original_price * $mypercentage)); 
return $adjustedamount;
}
document.getElementById("trueamount").innerHTML= computemypercentage(29.99);
</code></pre>
