I have written an income tax band calculation with PHP and it looks like the code works for some condition and the rest return inaccurate figures. Below is my PHP code for t