If(Contains(${Potentials.支払いサイト},'当月末'),Subdate(Newdate(Year(Adddate(${Potentials.Closing Date},1,'MONTH')), Month(Adddate(${Potentials.Closing Date},1,'MONTH')),1 ,0 ,0 ,'AM' ),1,'DAY') ,If(Contains(${Potentials.支払いサイト},'翌月末'),Subdate(Newdate(Year(Adddate(${Potentials.Closing Date},2,'MONTH')), Month(Adddate(${Potentials.Closing Date},2,'MONTH')),1 ,0 ,0 ,'AM' ),1,'DAY') ,If(Contains(${Potentials.支払いサイト},'翌々月末'),Subdate(Newdate(Year(Adddate(${Potentials.Closing Date},3,'MONTH')), Month(Adddate(${Potentials.Closing Date},3,'MONTH')),1 ,0 ,0 ,'AM' ),1,'DAY') ,Now())))