After Tax

$tax = 0.4 * ($income – 50000) + 0.2 * (50000 – 12500);
}

// Calculate the after-tax income
$afterTax = $income – $tax;

// Display the result
echo ‘

Based on your income of £’ . $income . ‘, you owe £’ . $tax . ‘ in tax.’;
echo ‘Your after-tax income is £’ . $afterTax . ‘.

‘;
}
?>




Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *