";
print " Taxation | Tax | ";
if (( $assessableincome > 50000)&&( $totalincome>50000)) {
$temptax = 50000 * (5/100);
print "
";
print "50,001 - 100,000 (5%) | ",$temptax," | ";
$totalincome-=50000;
# print "5% off now have $totalincome
";
$anuaytax += $temptax;
#print "5% Anuay Tax = $anuaytax
";
}else{
$temptax += $totalincome * (5/100);
$anuaytax += $temptax;
print "
";
print "50,000 - 100,000 (5%) | $temptax | ";
print "
";
print "100,001 - 500,000 (10%) | 0 | ";
print "
";
print "500,001 - 1,000,000 (20%) | 0 | ";
print "
";
print "1,000,001 - 4,000,000 (30%) | 0 | ";
print "
";
print "4,000,001 upwards (37%) | 0 | ";
&sum();
}
if (( $assessableincome > 400000 )&&( $totalincome > 400000 ))
{
$temptax = 400000 * (10/100);
print "
";
print "100,001 - 500,000 (10%) | $temptax | ";
$totalincome-=400000;
# print "10% now have $totalincome
";
$anuaytax += $temptax;
#print "10% Anuay Tax = $anuaytax
";
}else{
$temptax = $totalincome * (10/100);
$anuaytax += $temptax;
print "
";
print "100,001 - 500,000 (10%) | $temptax | ";
print "
";
print "500,001 - 1,000,000 (20%) | 0 | ";
print "
";
print "1,000,001 - 4,000,000 (30%) | 0 | ";
print "
";
print "4,000,001 upwards (37%) | 0 | ";
&sum();
}
if ( ( $assessableincome > 500000 )&&( $totalincome > 500000 ) )
{
$temptax = 500000 * (20/100);
print "
";
print "500,001 - 1,000,000 (20%) | $temptax | ";
$totalincome-=500000;
# print "now have $totalincome
";
$anuaytax += $temptax;
#print "20% Anuay Tax = $anuaytax
";
}else{
$temptax = $totalincome * (20/100);
$anuaytax += $temptax;
#print "now have $totalincome
";
print "
";
print "500,001 - 1,000,000 (20%) | $temptax | ";
print "
";
print "1,000,001 - 4,000,000 (30%) | 0 | ";
print "
";
print "4,000,001 upwards (37%) | 0 | ";
&sum();
}
if ( ( $assessableincome > 4000000 )&&( $totalincome > 4000000 ) )
{
$temptax = 4000000 * (30/100);
print "
";
print "1.000,001 - 4,000,000 (30%) | $temptax | ";
$totalincome-=4000000;
# print "now have $totalincome
";
$anuaytax += $temptax;
#print "30% Anuay Tax = $anuaytax
";
}else{
$temptax = $totalincome * (30/100);
$anuaytax += $temptax;
print "
";
print "1,000,001 - 4,000,000 (30%) | $temptax | ";
print "
";
print "4,000,001 upwards (37%) | 0 | ";
&sum();
}
if ( $assessableincome > 4000000 )
{
$temptax = $totalincome * (37/100);
print "
";
print "4,000,001 upwards (37%) | $temptax | ";
$anuaytax += $temptax;
}
print "