+ 4

Given net income (N), tax rate (r), slab amount (S) and the base tax (BT) respectively, can you compute the total tax (T)?

You may know that income tax calculations in most parts of the world is based on slab model. Let's take a simple case of a two slab model with transition from base slab to top slab defined by slab amount (S). Let the base tax for gross income amount (G) equal to (S), be defined as (BT). If income exceed S, then the total tax would be T = (G - S)*r/100 + BT where r = income tax percentage rate (0 < r < 100) for income amount exceeding slab amount (S) Let us say hypothetically, a new scheme has been introduced to give a tax rebate as follows: B = (T*T)/G. Then, the final tax, F = T - B. The net income (N) would be N = G - F Given net income (N), tax rate (r), slab amount (S) and the base tax (BT) respectively, can you compute the total tax (T)? Your program needs to read from standard input the requirement parameters and emit only the total tax in its standard output as given in example below. Please note, the output has been rounded-off to two decimal places.

21st Oct 2022, 5:58 PM
Aayush Shrivastava
Aayush Shrivastava - avatar
4 Answers
+ 6
You have all the formulas there, just put them together in the syntax of the language you want, accept the inputs and output the answer.
21st Oct 2022, 8:22 PM
Ausgrindtube
Ausgrindtube - avatar
+ 2
Mahendra Gurjar this code is really off-topic and could be considered as spam. Please don't do that. If you have a question, start a new thread and post your problem there and include the code.
1st May 2023, 7:16 AM
Ausgrindtube
Ausgrindtube - avatar
0
Aayush Shrivastava Do you have many friends with same question? This is 3rd time I am replying and every time don't get attempt code or reply Full stack developer can't solve small problem. How it is possible.
22nd Oct 2022, 10:49 AM
AÍąJ
AÍąJ - avatar
0
Understanding this model highlights how to plan your taxes https://rates.fm/taxes/ effectively. Given net income and parameters, reverse-calculating total tax (T) involves solving for gross income (G) iteratively, applying slab rules, and then working backward. Programming such logic ensures accurate computations and helps maximize benefits under rebate schemes for better tax planning.
8th Dec 2024, 9:34 PM
Odessa
Odessa - avatar