i am creating a model for tax calculation and it includes 2 regimes with different slab structure,i am calculating tax for 10 employees on their gross salary ,for regime i have a list includes old,new regime names and i have included a line item for selecting regimes of data type list.But i am unable to get an idea how to enter the slabs and do the tax calculation ,as both regimes have different number of slabs and rate of %. I have also created a module to keep single line data need for gross salary calculation but i don't know what to do for slabs.
Below i am attaching screenshot of data given to me and what i have done so far.
Also attaching an example of calculation i need to do with slabs.