0 ){ $taxable = $gross - $allowance; } else { $taxable = 0; $tax = 0; } if( $gross <= $ni_thr ){ $ni = 0; } //TODO if( isset($_REQUEST['holiday']) ){ $holiday = $_REQUEST['holiday']; } else { $holiday = 0; } if( isset($_REQUEST['paidbankhol']) ){ $paidbankhol = $_REQUEST['paidbankhol']; } else { $paidbankhol = 'Y'; } ?>
Tax year
Allowance
income
>Unpaid holiday
hours per week
tax paid in a year
Pay:YearlyMonthlyWeeklyHourly
Gross:
Taxable:
Tax:
NI:
Net:
74048 ){ $us_tax = 17611.68 + ($us_base - 74048) * 0.40; } $us_tax = number_format($us_tax, 2, '.', ''); $us_tax_gbp = number_format($us_tax/5.5, 2, '.', ''); $us_diff = number_format($us_tax-($tax*5.5), 2, '.', ''); $us_diff_gbp = number_format(($us_tax)/5.5-$tax, 2, '.', ''); $hmrc_diff = number_format($_REQUEST['taxpaid'] - $tax, 2, '.', '') ?>

0 ){ print( 'Your salary is '.$highratediff.' GBP into the high '.$highrate_tmp.'% tax rate.' ); } else { $highratediff = $highratediff * -1; print( 'Your salary is '.$highratediff.' GBP away from the high '.$highrate_tmp.'% tax rate.' ); } ?>