I need an expert work for my requirement. I have two tables which are consisting from main data table and table with only have dates of last day of months. I want to bring dates to table and calculate an additional field named as 'Deferred amount'by below formula
Formula =((Expiry Date-Calculation Date)/(Expiry Date-Starting Date))*Amount
But I am having an other concern since table1 is having more than 500K records and calculation of each record with each date again and again can be also challenging.
So I need to calculate this values with most efficient way.
Thanks in advance and any help will be appreciated.