Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

How to subtract to dates and get the result in number of days

$
0
0

I am creating a form for work and I already created two Date/Time Fields and I want a third field to automatically calculate the difference between the two dates in days. I then need to use this result in another equation. It goes as follows (for example):

 

Settlement Date (SD): 06/19/2019

Maturity Date (MD): 06/25/2019

Discount Rate (DR): 17.50%

Number of Days (ND): 6

 

First I need to calculate the number of dates and let it populate one of the fields in the form, so I need to let the form subtract whatever date is in SD from MD and give me the result in days.

 

Second, I need to use the result in days in the following equation

=(1/(((ND)/365)*(DR/100)+1))

 

or an equation that would directly go as =(1/(((MD-SD)/365)*(RD/100)+1))

 

Note:

I tried to use Excel formula to JavaScript converter and it didn't work.

I have no experience in Java and I am using LiveCycle Designer the comes with Adobe Professional 7

I use Windows 10 as an OS

 

I would really appreciate all the accurate help I can get. I am lost …. THANK YOU !!!!!!!!!!!


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>