WAP to calculate tax given the following condition: If income is less than 150,000, then no tax If income in the range of 150,001-300,000, then charge 10% tax If income is in the range of 300,001-500,000, then charge tax of 20% If income is above 500,001, then charge tax of 30%