How do you calculate a date on a form?

I am working on a form for our customers and our staff to use and I needfor it to calculate a date from another date. We are currently using an Excel spreadsheet that is working very well, but we are starting to run into customers who do not have access to Excel. Having the form in Adobe would give us more flexibility.
Here is an example of exactly what I need:
Last Read Date: 01/01/00
Approximate Due Date_1: 01/26/00  (this is the Last Read Date + 26 days)
Approximate Due Date_2: 02/26/00  (this is the Last Read Date + 56 days)
Approximate Due Date_3: 03/26/00  (this is the Last Read Date + 85 days)
Thank you

Check out this previous topic: http://forums.adobe.com/thread/836872

Similar Messages

  • How do you calculate multiple fields in a Form?

    Hi,
    I have a spreadsheet with several headings and several fields as illustrated below, and description of each field and calculation required is listed below.
    Rate Per Day
    Days
    Course
    Attending
    Total
    $1,000
    2
    Course A
    Yes
    $2,000
    $2,000
    1
    Course B
    Yes
    $2,000
    $5,000
    5
    Course C
    No
    $2,000
    2
    Course D
    Yes
    $4,000
    Total:
    $8,000
    Rate per day:  Field value is inputted by us.
    Days:  Field value is inputted by us.
    Course:  Field value is inputted by us.
    Attending:  Is actually a check-box that the client ticks.
    Course Total:  This should be the calculation of RATE PER DAY * DAYS IF ATTENDING BOX IS CHECKED
    Total:  Sum of above COURSE TOTAL FIELDS
    We currently do this in EXCEL 2007, however we looking at converting it to a PDF Form for distribution to our clients to we can track responses, etc.
    My question is really ery simple ... how do I create the above calculations in a form that I want to distribute??  This possible?? If so how (please bear in mind I'm not a developer

    In re-reading your question, I realized you're using a check box. In that case, you will need to create a custom calculation script using JavaScript.
    Something like:
    // This is a custom calculation script
    (function () {
        // Get the value of the check box
        var v1 = getField("Attending1").value;
        if (v1 !== "Off") {
            var v2 = +getField("Rate1").value;
            var v3 = +getField("Days1").value;
            // Sum the two field values and set the value of this field to the result
            event.value = v2 + v3;
        } else {
            // Blank field if checkbox is unchecked
            event.value = "";
    You'd replace the field names I used with the field names you're using.
    This leaves out checking to see if the corresponding Couse field is filled-in, and you'll have to use a custom Format script if you want the type of formatting you show.

  • I wanted to know how do you calculate the number of days between two dates

    i wanted to know how do you calculate the number of days between two dates in java ? i get both the dates from the database. i guess there are many issues like leap year and Febuary having diff no of months ..etc.

    thanks..
    I solve my problem as
    public class MyExample {
        public static void main(String a[]) {
            String stdate = "2009-03-01";
            java.sql.Date currentDate = new java.sql.Date(System.currentTimeMillis());
            java.sql.Date preDate = java.sql.Date.valueOf(stdate);
            System.out.println(currentDate);
            System.out.println(preDate);
    //        int dateCom = preDate.compareTo(currentDate);
    //        System.out.println(dateCom);
            long diff = currentDate.getTime() - preDate.getTime();
            int days = (int) Math.floor(diff / (24 * 60 * 60 * 1000));
             System.out.println(days);
    }

  • How do you calculater correlation coefficients for data?

    I would like to calculate the correlation coefficient for data which has a linear correlation. I can calculate the linear fit, but how do you calculate the correlation coefficient from this data. Any help would be greatly appreciated.

    If you're just looking for the correlation coefficient (r^2 or r) of a linear regression, you can use the method described HERE earlier.
    LabVIEW Champion . Do more with less code and in less time .

  • How do you transfer the data from your Ipad to a new pc?

    How do you transfer the data from your Ipad to a new pc?

    Sync with new computer
    http://discussions.apple.com/docs/DOC-3141

  • How do you change the date of the photo?

    How do you change the date of the photo? 

    Photos Men -> Adjust Date and Time
    Regards
    TD

  • How do you merge the data of two MIDI regions?

    How do you merge the data of two MIDI regions into one MIDI region without using copy and paste functions in the piano roll editor?

    Sorry - didn't make myself clear. The glue tool would be no good here. I meant that I wanted, for example, to merge the MIDI contents of two regions that are perhaps on different tracks but play back at the same time, i.e. I want to add the 2nd region's MIDI to the 1st region's MIDI, but without having to go into the piano roll editor and cut and paste the data.

  • How do you change the dates on your iphoto pictures?

    How do you change the dates on your iphoto pictures?

    You'd need an app that can edit EXIF data. You can't do that natively on an iPhone but there may be apps in the App Store that will let you do it. Take a look at Snapseed. I think it might.

  • HT201250 how do you restore iCal data in Snowleopard?

    how do you restore iCal data in Snowleopard, as was it was wiped during sync update?
    Where is the file? Can it be restored using time machine?

    wrince wrote:
    Where is
    <~/Library/Calendars>
    Can it be restored using time machine?
    Yes.

  • How do you make your data into a chart?

    How do you make your data into a chart?

    Dick,
    Your table should look like this:
    You're looking at 1 Header Row and 1 Header Column. Headers are shaded by default. Adding a shading to a regular column doesn't make it a header. Use the Table Inspector.
    When you Select the data and Insert a Table, you will get this:
    Got it?
    Jerry

  • How do you change a "row Label" in form central into an interactive text box?

    How do you change a "row Label" in form central into an interactive text box?  I need to leave some of the row labels plank so that people using the form can add some of their on labels.  Can this be done and if so how?

    I'm not quite sure I understand your question. Respondents (fillers of the form) cannot edit the label of a field.
    Randy

  • How do you associate a view with a form?

    How do you associate a view with a form and make it accessible in the form?

    Try this
      <Field name='myview'>
                        <Display class='Text'>    
                            <Property name='title' value='My View'/>
                        </Display>
                        <Derivation>                       
                            <invoke name='getView'>
                                <ref>:display.session</ref>
                                <concat>
                                    <s>User:</s>
                                    <ref>accountId</ref>
                                </concat>                       
                                <map>
                                    <s>authorized</s>
                                    <s>true</s>
                                </map>
                            </invoke>
                        </Derivation>
                    </Field>           
                    <Field name='myview.waveset.organization'>
                        <Display class='Text'>    
                            <Property name='title' value='User Org'/>
                        </Display> 
                    </Field>

  • How do you calculate accumulated displacement?

    Hello! I would like to calculate the amount of displacment accumulated during a laboratory test using LVDT positions. Acquiring the signal and determining the position is no problem. However, I cannot think of an efficient way to sum the displacement measured by the LVDTs during the test period. From a progamming standpoint, I would simply save an initial value and subtract the current loop value to obtain the displacement. In the attached example I use a method which uses a case structure and a shift register, but it seems a bit brute force. Do you know of a more elegant way of doing this? If not, how do I tidy it up?
    Attachments:
    LVDT_displacement.vi ‏145 KB
    LVDT_DAQ_Assistant.PNG ‏22 KB

    Evan,
    Create control will create arrays on Add or Multiply only if an array is wired to one of the other terminals. Did you have the array from DDT wired to the Multiply (without the Index Array) when you first created the slope and intercept controls?  If you do not want arrays, go to the front panel, delete the array controls, and drop scalar controls on their places. Then wire the terminals to the numeric functions on the block diagram. Everything should then be scalars.
    It looks like the DAQ Assistant is set to acquire data from two channels at 1000 samples per second and to retrieve 100 samples on each call.
    When you convert from DDT to 1D array of DBL you get only one of the two channels. The array should contain 100 points from the first channel. All of the data from the second channel is lost. You then index out the first and second elements of the array from the first channel.
    I doubt that this is what you really wanted to do.
    The DAQmx VIs will give your direct control over the datatypes and eliminate the extra overhead of the DAQ Assistant.
    You should be able to configure the From DDT to allow you to select the channels. Double click to bring up the configuration dialog. You can select 2D array of scalars and then use Index Array to get the channel you want. Another option is to use 2 copies of From DDT and select 1D array of scalars - single channel. Then choose the channel with the control below the Scalar Data Type box.
    Once you get the arrays configured correctly I suggest that you calculate the Mean of each array and use that for your single value per iteration. Averaging the 100 points should significnatly reduce any noise on the signal.
    Lynn

  • How do you calculate a field

    Hi all,
    I would really appreciate some help as I do not know programing, java script or other programming languages.  I need to have a field calculate for me.
    The form has date of birth. Then I need the next field, (a text field) calculate the age on the previous field of the Date of Birth.  Does anyone have an idea how to do that?  I have gone through the help guide, but it assume you know the langauage to put in.
    thanks in advance.

    Janet, I've fixed the form and attached the updated version.  There were a couple of things that I changed:
    1. The form was saved as a static .pdf form.  This means that it's for display only; you can't run any scripts and change things programatically.  I changed it to be a dynamic form, which allows scripts to run when the user is entering data.  To do this I selected Save As from the file menu and then selected Save as type: Adobe Dynamic XML Form (*.pdf).
    2. Since the form was saved as static it stripped out the scripts.  I re-pasted the script that I gave you back into the calculate event for the Age field.
    I also changed the Language dropdown on the upper right side of the script window to Javascript, since that's the language that I used.
    3. The name of your DOB field is DateTimeField1.  You can see this by either looking at the Hierarchy window or by looking at the Field tab of the Object window.  In the future you should change the names of the fields from their default to something more descriptive.  For now it's fine.  I then replaced my references to "DOB" in my script with "DateTimeField1.
    4. Make sure that the preview type is set to dynamic.  Go to the File menu in designer and select the Form Properties item.  Click on the Preview tab and choose "Preview Type": Interactive Form and "Preview Adobe XML Form as": Dynamic XML form.
    The above changes made it work, but I changed one more thing:  The type of the DOB field is set to DateTime field, and when you use the pop-up calendar to select the date it gets saved in the data in a backward format (YYY-MM-DD).  This doesn't show up on the form since you have the display format set, but behind the scenes it messes up the date calculation in the script.  I set the edit pattern for the field to be either D/M/YYYY or D-M-YYYY to allow some flexibility when the user enters the date, and to force it to save in the proper format for the script.
    Oh, forgot to mention that "new Date()" gets the current date from the system, so you don't need a field on your form for it.  Green is a comment, not part of the script but just to document what's happening in the script.  Blue means reserved script instruction, black is everything else.  Makes more sense to you if you're a programmer. The Livecycle editor automatically colors the text to make it easier to read, we just type it in.
    Give this a try and let me know if you have more issues.
    Kevin

  • How do you stop 'Transferring Data from...' in toolbar on first page of a website - eventually stops but takes a minute then loases some images on a site when complete - other browsers are fine.

    Only happens on index page of website - Firefox repeatedly says 'connecting to site/transfering data from site in the status bar for about a minute before finally 'done', then some images on the index page are missing. All other browsers are fine - how do you turn off this problem in Firefox - there is nothing to download on the index page, already displayed but can't continue unless you jump to another page in the site. Searched web and many references to this but no definate answer. Code is same on all pages of site, just the index page which hangs.

    You can check for recently installed suspicious or unknown extensions.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Do a malware check with several malware scanning programs on the Windows computer.<br>
    Please scan with all programs because each program detects different malware.<br>
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender: Home Page:<br>http://www.microsoft.com/windows/products/winfamily/defender/default.mspx
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

Maybe you are looking for

  • Need help setting up external hard drive for FCE project

    Hi folks, Basically I am looking at making a 20-30 minute video this summer of my motocross adventures and what not and have equipped myself with an iMac (2.93 GHZ Core2Duo 640GB 4GB) and of course, FCE. I have tried smaller projects before (ranging

  • 10.2.1 update

    After i did the 10.2.1 update, whenever i go on snapchat or watch instagram videos once, the second time i try doing so, the camera bugs out.. When it bugs, i can't open my camera and i cant watch videos.... until i restart the phone

  • JAXB v1.0.2 and Webstart

    Hi, I'm trying to use JAXB within an app that is started via JNLP and WebStart. If i add all the JAXP jars to the JNLP file the app fails to start when JAXB calls into some xerces code that tries to access java.home. java.security.AccessControlExcept

  • Where do YOU go for stock video?

    Hello, I have just been told that I am going to spend the first six months of 2011 making videos for unknown bands!  Woo-hoo!  Just started shooting groups on our green screen set last week-.which I have done very little of in the past.  I'm using th

  • Advance with Special GL Indiactor

    Hi All, My Client wants to post travel advance with special GL Indicator (Advance). I have assigned GL Account (100000) with special GL indicator to advance symbolic account. When i try to post the document in T code PRRW it is giving error message