Calculate End Time from a Start Time and Minutes Allocated

Hello,
I have a meeting form which needs to have the finish time calculated from a start time and allocated time (in minutes).
The allocated time is a text field with the default of "00:00".  The user can then enter the number of minutes for the agenda item to take.  eg 00:20 would be 20 minutes.
The start time is a date/time calculated field which shows the current time after the allocated time has been entered. The formcalc script is :
form1.ActionsHeaderFrame.ActionsStartTime.rawValue
= num2time(Time(), TimeFmt(1))
The Finish Time field is a calculated date/time field to add up the start time and allocated minutes.
The formcalc script is:
var Min1 = ActionsTime.rawValue
var Start1 = Time2Num(ActionsStartTime.formattedValue, "h:MM A")
form1.ActionsHeaderFrame.ActionsEndTime.rawValue = Min1 + Start1
The end time is showing as a number, and I need help in converting to a time.
An example is as follows:
If the text field for allocated time as 00:20  and the start time date field shows 4:23 PM the calculated End time field is showing 22980001.
Any advice or assistance with this script would be most appreciated.

Thank you very much for your assistance.
I have changed the allocated time field (ActionsTime) to a binding time field.
In the End Time Field (ActionsEndTime) I have changed the formcalc function as follows:
var Min1 = Time2Num(ActionsTime.formattedValue, "HH:MM")
var Start1 = Time2Num(ActionsStartTime.formattedValue, "h:MM A")
$ = Num2Time((Start1 + Min1), "H:MM A")
The result with user input:
Allocated time field input of 00:10 which is equal to (10 minutes)
Start time field 10:41 AM
End time Field result shows 23:51 PM
Can you please advise where the formula needs to be revised to show the correct end time? 
Thank you

Similar Messages

  • Calculate end date from inputs : start date and number of months

    Hello Experts,
    I have a start date and number of months from which i need to calculate the end date.
    For Eg: start date = 03-12-2008
                no. of months = 48
          Ans: end date = 03-12-2012
    Please help me.

    requirement is no different from what is stated in the previous thread.
    To elaborate further, I'm looking for some Function Module or some relevant alternative to calculate the future date.
    Future date is calculated using a start date input and No. of months.
    As stated in the example in my previous thread.
    For eg:
    Inputs to FM    : Start date        : 03-12-2008
                                    No. Of months : 48  months
    Output from FM: Future Date     : 03-12-2012
    Looking forward for your reply.

  • Meals Per Diem by time for trip - start time & End time of the trip

    Hi,
    Please let me know if the Meal per Diem by time for trip -  - start time & End time of the trip is active or Inactive in SAP 6.0 .
    Can Meal per Diem by time for trip (not by hours) be configured in SAP Travel management.
    Please let me know how it can be configured - please provide an insight & details how it can be configured.
    We are trying to implement Meals Per Diem by time to European countries .
    Thanks in advance.
    Best regards,
    Sekhar.

    Hi,
    Yes Meals per diem can be configured based on time of trip.. (V_T706H)
    Following help would be helpful for you..
    Regards,
    Muhammad Umer
    Define Per Diems for Meals/Time
    In Travel Accounting you can do accounting of meals per diems for exact times.
    The meals per diems/time are distinguished using the following control parameters:
    trip country
    trip region
    enterprise-specific trip type
    These three control parameters are active during accounting.
    For every possible combination of the allowed entry values of the control parameters defined by you in the section Control parameters for trip costs, a meals per diem/time must be defined.
    statutory trip type
    trip activity type
    statutory reimbursement group for meals/accommodations
    enterprise-specific reimbursement group for meals/accommodations
    For each trip provision variant, you can determine how these control parameters influence the determination of reimbursement rates for meals per diems.
    If these control parameters are active, you have to define a meals per diem for each combination of all active control parameters.
    day
    The meals per diems/time can be scaled according to the total number of trip days. The valuation of the trip duration is carried out according to time, the entries are to be made correspondingly.
    For first/last trip day the following is required:
    number of days 1: time interval in which the meals per diem is                 reimbursed.
    Example:
    08.00 - 09.00 75.20 ATS
    If a trip starts before 8.00 a.m. and ends after 09.00 a.m., a meals per diem of 75.20 ATS is reimbursed.
    For entire trip days you require:
    number of days 99: complete time interval from 00.00 hours to 24.00 hours.
    For entire trip days with stopovers you require:
    number of days 98: Point in time up to which per-diem amount is                    reimbursed.
                       In general, an interval of <Zone
                       minute is enough.
    Example:
    08.00 - 08.01 100.00 ATS for destination France
    For a stay in France from 00.00 hours to 08.30 hours, a meals per diem /time of 100.00 ATS is reimbursed.
    For a stay in Germany from 8:31 hours to 24.00 hours, you access the corresponding  meals per diem/time for Germany.
    Validity interval in minutes
    The meals per diem/time are defined for a specific time in the system via the control parameters, a validity interval in minutes, via a validity period and the reimbursement amounts.
    Note
    If the reimbursement rates in a meals per diem/time are changed, you do not need to create a new meals per diem/time, but rather you can delimit the previously valid meals per diem/time in regard to time using a delimitation date. When you do this, a new identical meals per diem/time which is valid as of the entered date, is generated. For this new meals per diem/time, you need then only change the reimbursement amounts.
    Requirements
    You need to have defined the control parameters which you intend to use for modifying the meals per diem/time in the section Control parameters for trip costs.
    Recommendation
    SAP recommends that you set the end date of the validity period of a meals per diem/time to the date 31.12.9999, since the end date cannot be changed at a later stage.
    In this way no restrictions are placed on delimiting.
    Activities
    To define a meals per diem/time, proceed as follows:
    1. Choose the trip provision variant you require.
    2. Assign control parameters according to your requirements.
    Note that you cannot change the control parameters at a later date.
    3. In the field Time from, enter the time that you wish to define as the start of the exact (to-the-minute) validity interval.
    4. In the field Time to, enter the time which you wish to define as the end of the exact (to the-minute) validity interval.
    5. Define a validity period via the fields Start and End.
    Note that you cannot change the end date at a later stage.
    6. In the field Currency, assign the required currency for the reimbursement amounts.
    7. Enter the tax-free reimbursement amount in the field Tax-free amount.
    8. Enter the enterprise-specific reimbursement amount in the field reimbursement amount.
    9. Enter the reimbursement amount which you charge a customer in the field Amount for customers.
    Note
    At present, this amount is not evaluated by the standard programs.
    To delimit a meals per diem/time, proceed as follows:
    1. Select the required meals per diem/time in the overview screen.
    2. Choose Goto -> Detail.
    You are now in the detail screen.
    3. Choose Edit -> Delimit validity.
    4. Enter the new validity date in the field Valid from.
    5. Press the function key Continue.
    6. Check the tax-free reimbursement amount in the field Tax-free amount and change it if necessary.
    7. Change the enterprise-specific reimbursement amount in the field Reimbursement amount if necessary.
    8. If necessary, change the reimbursement amount in the field Amount for customers.
    Note
    At present, this amount is not evaluated by the standard programs.

  • How do I get a time value in days, hours and minutes returned to a cell from a calculation of distance divided by speed?

    How do I get a time value in days, hours and minutes returned to a cell from a calculation of distance divided by speed?

    Simon,
    you can use the duration function:
    B4=DURATION(0,0,B1/B2)
    you can further, format the cell as a duration like this using the cell inspector:

  • How 2 prevent time from changing on leopard and vista?

    if i maintain successive boots into the same OS on my macbook, the time is shown correctly, whereas on booting into another OS changes the time. how to prevent this from happening?
    Neerav

    From what my brother says says about his set-up (he boots into 64 bit Vista periodically), apparently you can't. My understanding is that the two systems do a different version of time at boot, Vista uses a GMT setting in bios, and I think Mac use a local time in EFI. Anyway, the result is several hours difference between the two. I don't use Boot Camp, but I would think if you are on a network with Internet access, you should be able to have the clock reset automatically using System Prefs->Date and Time, and check the box at the top to automatically set the time from the Apple time server.
    Francine
    Francine
    Schwieder

  • How to set 15 min default time to add in end time based on start time.

    Hi,
    When we are creating activity in  crmd_order transaction system is automatically adding 10 min to start time. if start time is 08:00  then end time to 08:10 min here my requirement is to to add only 15 min to start time then i need to show 08:15 min. for this i checked in spro->crm->transaction>basic settings>define transaction i defined z transaction then i went to Define residence time here i selected my z transaction type and assigned 15 min but it's not reflecting in crmd_order --->activity as appointment. is there any way to set default add only 15 min to this transaction type.
    rose.

    Create new date rule and assign it to end date type.
    the code for the rule is...
    <?xml version="1.0"?>
    <TimeRule>
       <TimeRuleSource>
          <ruleline>
             <AssignTimeExp displaytype="AssignTime">
                <VarTimeExp displayType="VarTime"
                                   name="RESULT"
                                   position='B'>
                </VarTimeExp>
                  <MoveTimeExp displaytype="MoveTime" direction="+">
                     <VarTimeExp displayType="VarTime"
                                        name="START_DATE"
                                        position="B">
                     </VarTimeExp>
                     <ConstDuraExp displaytype="ConstDura"
                                      duration="15" timeunit="MINUTE">
                        <VarObjectExp displaytype="VarObject"
                                      name="SYSTEM"/>
                     </ConstDuraExp>
                  </MoveTimeExp>
             </AssignTimeExp>
          </ruleline>
       </TimeRuleSource>
    </TimeRule>

  • Face time fades out and then tries to reconnect on new ipad retina display on WiFi.  Iphone 4s has no problem with face time from exact same location and same contact.  WiFi signal strong on both devices.  What gives?

    Face time fades out and then retries to connect (new Ipad Retina Display) on WiFi. Iphone 4s has no problem with face time from same location and same contact.  What gives?

    rdallas001 wrote:
    Is the router to small?
    Not necessarily, if you are using Facetime all the data goes through your WiFi router, your cable/DSL modem, your ISP and the internet to Apple's Facetime servers and then, in reverse, down to the Facetime recipient. If your ISP connection is too slow or there is excessive traffic on the internet you can have Facetime problems.
    Most WiFi routers can handle this unless others in the house are also using WiFi at the same time. The problem may be your ISP connection or congestion on the internet, etc.

  • 2 way communication - talk to server from web start app and vice versa

    I want to send status messages between my web start application and services running on the web server computer. I havent been able to find any examples on this. Can I communicate over http? Do I need to set up a separate connection to a port and communicate on my own? any ideas on how to do this?
    thanks

    ''Roland Tanglao [[#answer-698502|said]]''
    <blockquote>
    Hi scruffy90:
    You wrote "LG G2 and Samsung Galaxy Note 3. Both on Android 4.4.2 Firefox for Android Ver. 35.0.1 "
    I just tried switching between HSPA+ aka 3G and WiFi on a Galaxy S5 running Android 5 and have had no issues but I think this may have been an issue in the past (I did a search for a bug in bugzilla.mozilla.org but couldn't find anything).
    Are there any other details you could provide that could help us debug?
    e.g.
    # Are you using a proxy?
    # Who is your WiFi provider?
    # Have you tried other WiFi (e.g. the Wifi both at home and work)
    Cheers!
    ...Roland
    </blockquote>
    Hello Roland,
    No proxy on the phone or wi-fi network.
    My ISP is Time Warner, but I supply my own router (Linksys e4200)
    And this happens on every wi-fi network, at home and away from home.

  • How to edit two starttime & end time into single start time and end time

    my application is to reserve a resource for particular period of time
    (min 1hr) so i store time into database as numerice value
    i need to edit the reserved time
    my problem is
    (for eg)
    a user reserve as 6.00 to 9.00
    the same user reserve as 15.00 to 18.00 on the same day
    if the user need to edit the time as 8.00 to 16.00 then i need to check the database and update it to 8.00 to 16.00 and those two reservation should not be present in the database
    i dont know how to solve this problem
    kindly help me in this regard
    thank u in advance

    How are you storing the two times?
    If u r storing as two different records u need to delete them and add a new one
    Other approach is to store the time as comma separated values like
    6.00-9.00, 15.00-18.00. when u want to change them just update it with the latest value.

  • What Do You Do When Recording Start Time Differs From Show Start Time?

    I record several series.  My problem is that generally the show begins at 10:01 and that is when the DVR is set to record.  Every now and then the network changes an individual episode to begin at 10:00 (one minute early)... or some variation of this.  In this circumstance, the show does not record.  Is there any way to work around this and ensure that the show records? 
    Solved!
    Go to Solution.

    Douga101 wrote:
    I record several series.  My problem is that generally the show begins at 10:01 and that is when the DVR is set to record.  Every now and then the network changes an individual episode to begin at 10:00 (one minute early)... or some variation of this.  In this circumstance, the show does not record.  Is there any way to work around this and ensure that the show records? 
    Set it to record at any time and that should eliminate your problem. 
    I use the following setting for series recordings and they always record, starting at the proper time.
    Episodes:  first run only
    Start:  on time
    End:  1 minute after
    Air time:  any time
    Duplicates:   no
    Channel:  selected channel
    Some shows may need different start and end time adjustments.  But those work for the series I record. 
    Keep, Save, and Delete settings at your preference.

  • Flash Builder 4.4, Application crashes every time when i start profiling and take memory snapshort?

    Hello all,
    i have a real wired problem, when ever i start profiling my application in Adobe Flash builder and take a memory  snapshot the application crash, and these dialogs appears.
    i have tried Adobe flash builder 4.4, 4.5, 4.6 all of these have same behavior on window xp, while on mac os x the 4.6 version is working fine for profiling but the debug mode crashes every time. while 4.4 and 4.5 crashes on profiling and working fine for the rest of the work.
    help required
    regards.

    If there are any saved web pages or HTML files in the same folder that you're trying to upload from, move or delete those files and try again. Otherwise, try moving the files you want to upload to a different folder.

  • How do I assign a timer to the DAQ module so that it counts the time from the start of the collection?

    Hi Everybody,
    I'm new to LabVIEW and need some help!
    I have setup a system that acquires the data from 4 thermocouples. I have then split the data to provide 4 temperature versus time graphs. The temperature fluctuates up and down but the time values at the bottom do not change? What I would like is for the time values to represent the amount of time the data has been collected for!
    I have attached my program, so please give me any ideas! Also any other improvements that you feel would make it better, please dont be shy!
    Alex
    Attachments:
    Thermocouple Temperatures21.vi ‏365 KB

    The time is not increasing/changing because you have "Ignore Timestamp" Checked  (right click on a graph to uncheck)  This should fix the problem
    Kenny

  • P2 gen.spool; how to call it several times from P1 in Job and look spools ?

    Hi
    I have a Program 2  wich generates a report (list). If i create a Job (SM36) with this Program 2, the Job generates the corresponding spool.
    I have other Program 1 wich call several times the Program 2, but if i create a Job with this Program 1, the Job does not generates anything spool.
    PROGRAM 1
       LOOP AT  itab.
           SUBMIT  PROGRAM2
                  USING SELECTION-SET  vari
                  WITH   p_werks     =  itab-werks
                  AND RETURN.
       ENDLOOP.
    I hope to see in the Program 1 Job all the resulting spools (reports) for each Program 2 execution , but it does generates anything, the executions are realized, but the spool are not generated in the Job.
    Does somebody knows how can i achieve this, how to create a Job for a program wich call anhoter program wich generates a report, and see the reports in spool ?
    Regards
    Frank

    Hi,
    Check this example from the standard sap help..
    Output is to the SAP spool database with the specified parameters. The print parameters are passed by the field string params which must have the structure of PRI_PARAMS. The field string can be filled and modified with the function module GET_PRINT_PARAMETERS. The specification arparams with ARCHIVE PARAMETERS must have the structure of ARC_PARAMS. This parameter should only be processed with the function module GET_PRINT_PARAMETERS. Before output to the spool, you normally see a screen where you can enter and/or modify the spool parameters. However, you can suppress this screen with the following statement
    DATA: PARAMS LIKE PRI_PARAMS,
          DAYS(1)  TYPE N VALUE 2,
          COUNT(3) TYPE N VALUE 1,
          VALID    TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING DESTINATION           = 'LT50'
                COPIES                = COUNT
                LIST_NAME             = 'TEST'
                LIST_TEXT             = 'SUBMIT ... TO SAP-SPOOL'
                IMMEDIATELY           = 'X'
                RELEASE               = 'X'
                NEW_LIST_ID           = 'X'
                EXPIRATION            = DAYS
                LINE_SIZE             = 79
                LINE_COUNT            = 23
                LAYOUT                = 'X_PAPER'
                SAP_COVER_PAGE        = 'X'
                COVER_PAGE            = 'X'
                RECEIVER              = 'SAP*'
                DEPARTMENT            = 'System'
                NO_DIALOG             = ' '
      IMPORTING OUT_PARAMETERS        = PARAMS
                VALID                 = VALID.
    IF VALID <> SPACE.
      SUBMIT RSTEST00 TO SAP-SPOOL
        SPOOL PARAMETERS PARAMS
        WITHOUT SPOOL DYNPRO.
    ENDIF.
    Thanks,
    Naren

  • Lync Inactive Timer Not Working - Starts after 5 minutes rather than 20 minutes

    I have a client who has her Inactive timer set to 20 minutes.  I verified that the registry entry is set as such.  We have rebooted her system and cleared her Lync cache files.  She does not have a screen saver set, and her plugged
    in power setting for turning off the display is set for 30 minutes, and put the computer to sleep is Never.  Battery power options has the display turning off after 5 minutes.  Her system is plugged in and the Inactive status kicks off
    after 5 minutes and the display does not turn off.  I can not figure out why it is kicking off after 5 minutes rather than 20 minutes as it is set.  Any ideas on what else might be causing it to go inactive after 5 minutes?  Or what else I can
    try to get it to initiate the 20 minutes that it has set?

    My apologies, I didn't check the location being the 2010 forum and was hoping it might still be 2013 as we get a lot of 2013 posts in the 2010 forums.  The app doesn't currently work with 2010 which stinks.  I was thinking if it
    worked we could beef it up so it worked well for you and add some additional features.  In the end, there's no native option but it's a good idea.
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications
    This forum post is based upon my personal experience and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to read time stamps from a spreadshee​t and calculate the difference between consecutiv​e time stamps?

    Hi,
    I am new to Labview. This question might be a joke to some of you here, but any help would be greatly appreciated. I have a spreadsheet with time stamps and power outputs from a generator. I am supposed to calculate the difference between consecutive time stamps, which will act as a delay for the next power output update that needs to be sent. For example, lets say that I have to following data:
    Time Stamp                    Power Output
    11:00:00 AM                       3kW
    11:00:02 AM                       2.9kW
    11:00:04 AM                       3.2kW
    11:00:06 AM                       3.1kW
    The above data doesn't make any sense, but it is just for the purpose of this question.
    So, I have to read 11:00:00 AM and 3kW initially - 3kW is the initial request that

    Hello
    you can simple subtract one time from the other one and so you get the difference. -> Example
    Mike
    Attachments:
    Unbenannt 2.vi ‏8 KB

Maybe you are looking for

  • Install Oracle 8.1.7 (64 bit) on AIX 5L

    Hi all, I'm installing Oracle 8.1.7 (64 bit) on IBM AIX 5L and everything goes fine while copying files, but there are problems in the relinking phase. I've installed the 32 bit version and it works, so the problem seems to be with the 64 bit version

  • Install oracle9i(9.2.0.4) on Fedora Core3

    Install Oracle9i(9.2.0.4) on Fedora Core 3 I. Prepare the files 1. Download ship_9204_linux_disk1.cpio.gz, ship_9204_linux_disk2.cpio.gz ship_9204_linux_disk3.cpio.gz from www.oracle.com to your local disks.Unzip them all. gunzip ship_9204_linux_disk

  • How to unlock the request for a report and add the same query to new reques

    hi,      how to unlock the request for a  and add the same query to new reques

  • Oracle jms and glassfish

    Problem: glassfish (J2EE Sun Java Aplication Server) have to receive JMS messages about updates of the table in oracle Please help me configure oracle services and aplication server to solve this problem!

  • External program communication

    Hi all, For a SAP project I need to establish an connection to an existing Delphi program (Delphi 7), send and receive data in various formats. After searching the web for info ( I am new to ABAP programming ) I could not find very much info on how t