Modified javascript to add more date in colums

  1. Create PolicyDetails file with multiple records having data as (PolicyNo, PolicyHolderName,
    PolicyDate,PolicyAmount ). Sample data is provided. Add 5 more records in these data.

Capture

  1. Calculate 3 installment dates from PolicyDate using Modified Java script step

 First installment date should be within 3 days of PolicyDate.
 Second installment date should be after 3 months of PolicyDate.
 Third installment date should be after 6 months of PolicyDate.

  1. Store all details along with installment dates in excel output file.

Hello @suyat13

You can use Modified JavaScript step to calculate the installment date depending upon the conditions given.
Lastly you can use Microsoft Excel Writer step to store the data in the output file.

Hi Suyat13
You can use below logic in Modified JavaScript value plugin
var First_Installment=dateAdd(PolicyDate, “d”, 3);

var Second_Installment=dateAdd(PolicyDate, “m”, 3);

var Third_Installment=dateAdd(PolicyDate, “m”, 6);

Thank You