Tax Calculator for calculating the tax of a product in php. Make use of this php calculator to calculate tax of any country by passing in product rate and tax percentage.
function taxCalculator($amount,$tax_rate){
$tax_rate = $tax_rate/100;
$tax = $amount * $tax_rate;
return $total = $tax + $amount;
}
function taxCalculator($amount,$tax_rate){
$tax_rate = $tax_rate/100;
$tax = $amount * $tax_rate;
return $total = $tax + $amount;
}
No comments:
Post a Comment