require this function complete on a page and upon submit... all put into a single table on a mysql db
form has variables...
a = (number field all income )
if you are married is your spouse unemployed? if yes insert amount (spouse unemployed number field)
have u received any social welfare? if so how much?
b = a + social_welfare + spouse social welfare - less medical expences (number field ) - dental expences (number field )
$personal = 1830 ; $paye = 1830 ;
$bins = $bins (number field) * .2;
$water = (number field) $water * .2;
$college =(number field) $college * .2;
$union = 50;
do you have any children and are u a carer?
if b <= 36,400 then c = b * .2
else c = 7280 + ( (b - 36,400) *.41 )
$i = $bins + $water...
$j = $c - $i
if unemployed && carer then $carer = 900, else $carer
Savings: $c - $j; green
Tax paid: $c; g red
Actual Tax: $j; yellow
all variablees to take 2 decimal points
must be compatable in all browsers, crome, ie, firefox. xhtml compatable