Nupur Sharma News: Indian Court Decision on Nupur Sharma Case

[php]
function calculate_tax($price) {
$tax = 0;
$usd_price = $price / 170;
if ($usd_price <= 30) {
$tax += 180;
$sales_tax = 150;
$wht = 70;
} elseif ($usd_price <= 100) {
$tax += 1800;
$sales_tax = 1470;
$wht = xx; //You didn’t provide the value for this range.
} elseif ($usd_price <= 200) {
$tax += 2700;
$sales_tax = 1870;
$wht = 930;
} elseif ($usd_price <= 350) {
$tax += 3600;
$sales_tax = 1930;
$wht = 970;
} elseif ($usd_price <= 500) { $tax += 10500; $sales_tax = 6000; $wht = 3000; } else { $tax += 18500; $sales_tax = 10300; $wht = 5200; } $tax += $sales_tax + $wht; $tax += $price * 0.09; if ($price >= 10000 && $price < 40000) { $tax += 1000; } elseif ($price >= 40000 && $price < 80000) { $tax += 3000; } elseif ($price >= 80000) {
$tax += 5000;
}
$tax += $price * 0.009;
return $tax;
}
?>

?>
[/php]