Thursday 1 September 2016

Simple Tax Calculator in PHP

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;
}

No comments:

Post a Comment