Hi Community,
I have the data which consist of multiple ageing bracket criteria and percentage for each item as per screenshot below. Each group of data and type consist of different ageing bracket and percentage .

I would like to use the above criteria to calculate ageing months and discount for the following data as per screenshot below.

And the result will be as follow:

May i know if there is anyway to build the workflow more dynamically based on the criteria - Data A? I had attached the desired result in the excel file below.