NXT shortest track calculation

Hello,
I have a urgent question. 
One of our teachers has given us the challenge to build an nxt robot that can collect and sort collored balls that are lying on a "playing ground" as shown in picture. (yellow dots are ball locations)
We get the "location" of the collored balls 5 minutes before start of challenge. (We now the places but we dont know which collor will be at what place) so we thought about inserting that by higlighting buttons for one collor of balls and leaving them blank for the other collor balls.
Now, we made VI 's for: turning left/right, stop/riding over a crosspoint (where 2 black lines cross) we can use the ultrasone and light sensors etc... We did lot's of tests with them
But now the problems starts:
We have to write a labview program that can calculate the shortest way to a specified ball (Our goal is to collect 3 balls of same collor at a time before returning to base) following the black lines.
Then transmitting the calculated short track to the nxt true bluetooth. (Shortest way means as less turns obviously).
But we dont have any clue how to program such thing... we only have verry verry basic knowledge of labview and time is really running out...
If anybody has an idea how to make such program or if anybody can give us detailed information on how to program that or if want to be our hero and you can make that program for us...
Please let us know, we are desperate.
Many thanks,
Vincent
(sorry for English mistakes... I'am used to speak dutch )
Attachments:
STEL SITUATIE.png ‏23 KB

Hello Vincent,
I do not seem to be able to open your attachment.
Is there an error that you're running into?
What algorithm are you trying to implement to solve this problem?
Do you need to write a program that calculates the shortest path or the shortest amount of time needed?
Shortest path doesn't necessarily mean for me the least amount of turns.
Did you already have a look at this page (http://nxtmastery.com/) to get started with the program?
Have you already defined your algorithm in pseudo-code?
This will help you with implementing your algorithm.
Kind Regards,
Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
CLD, CTA
If someone helped you, let them know. Mark as solved and/or give a kudo.

Similar Messages

  • Shortest path calculation in huge spatial network

    Looks like I have to load the whole network in order to perform shortest path calculation.
    such as NetworkManager.shortestPathAStar, NetworkManager.shortestPath
    Suppose the network is too big to be loaded at one time, what is the possible solution in Oracle spatial to solve this issue???

    I can’t think of a way of analysing the network in chunks as it would increase the complexity of the calculation and may miss routes. If you know the start and end point have you considered drawing a connecting line between the two, buffering it and just loading the network inside the area.
    You would need to check the route by increasing the buffer size and finding the shortest route again.
    Another option could be to divide the network into primary and secondary routes. Find the route from the start to the nearest primary node and from the end point to the nearest primary point then connect the primary nodes. Based in a quick Google this is sounds a bit like the algorithms Garmin and Tom Tom use.
    Message was edited by:
    grahamallan

  • Market tracking calculations

    I am starting a market strategy with $10,000.  Every week I may be selling or buying any or all of the stocks, but will never hold more than 5.  I would like to set up automated calculations. 
    The idea behind the strategy is that i originally invest an equal amount of funds into each of the original stock choices, hold for a week, then compare whether the stock is still listed at its high the next Monday.  If the stock is still on it's high, I keep it for another week.  If it has fallen off, I sell the stock and replace that/those stock(s) with the one(s) that have replaced it.  This will call for buying and selling up to 260 stocks within a year,keeping track of the cost of the trades at $7 a pop, and evenly distributing both the initial investment across the stocks and then any time more than one stock falls off the high.  I should always to to have balanced amounts invested in each stock without have to buy/sell to make that happen.
    Example:  Week 1 (Initial Cash Fund = $10,000)
    Stock A @ $25 a share ($2000 - $7 fee = $1993 to spend) = 79 shares = $1975 w/ a $18 remainder
    Stock B @ $40 a share ($2000 - $7 fee = $1993 to spend) = 49 shares = $1960 w/ a $47 remainder
    Stock C @ $50.91 a share ($2000 - $7 fee = $1993 to spend) = 39 shares = $1985.49 w/ a $7.51 remainder
    Stock D @ $17.25 a share ($2000 - $7 fee = $1993 to spend) = 115 shares = $1983.75 w/ a $9.25 remainder
    Stock E @ $86 a share ($2000 - $7 fee = $1993 to spend) = 23 shares = $1978 w/ a $15 remainder
    Total Remainder = $96.76 stays in Cash Fund
    (I would want the calculations to tell me how many shares I could buy of each stock as well as keep track of any remainders)
    Week 2 (Cash Fund = $96.76)
    Stock A, B, and C all remain on their highs
    D fell off the list and needs to be sold @ (17.10 * 115) - 7= $1959.5  (loss of $31.25)
    E fell off the list and needs to be sold @ (88.40 * 23) - 7= $2026.20 (gain of $41.20)
    Cash Fund = $4082.46
    Buy Stock F @ $15 a share ($2000 - $7 = $1993 to spend) = 132 shares = $1980. w/ a $13 remainder
    Buy Stock G @ $116.5 a share ($2000 - $7 = $1993 to spend) = 17 shares = $1980.50 w/ a $12.50 remainder
    Toal Remainder = $121.96
    ETC.
    I can visualize the basics of the spreadsheet, but am uncertain as to how to add some functions or even where/how to list certain basics and I have yet to find anything that clearly shows what I what.  If anyone is willing to share, I would be most grateful.
    Thanks

    HI Gemma,
    ELSE is buillt into the IF function. The syntax is IF(condition,do-if-true,do-if false)
    For both buy and sell formulas in my post, the 'ELSE' part (do-if-false) was "" which means 'return a null string.
    To combine costs and proceeds into a single column, you'll need to account for three conditions in the buy/sell column: Buy, Sell, and none of the above (where no choice of transaction type has yet been made). Since IF tests only for one condition at  time, you'll need to use a pair of nested IF statements. The second replaces the do-if-false part of the firat.
    Syntax: IF(condition1,do-if-true,IF(condition2,do-if-true,do-if false))
    Some questions:
    Will you ever buy the same stock a second time? I'm looking at a way to automatically populate the number of shares sold. I've assumed that you intend to sell all your holdings of a specific stock each time you do a sell transaction, so the shares sold would be equal to the number bought in a previous Buy of the same stock. That's a simple Lookup if there's only one mention of that stock in the cells prior to the current one, but not it there's more than one Buy of the same stock (all but one of which will, in the case of repeated buys, have a matching Sell transaction, according to your description.
    What happens when the cash balance falls below 2000 * the number of Sell transactions done in a specific week?
    What happens when the cash balance rises? How much does it need to rise for that to happen? Knowing those would allow automating the "Available" column
    The transaction fee could also be easily calculated, rather than requiring entry on each transaction. A 'fixed' fee is likely to change over time, and caution would be needed to ensure that the change would apply only to transactions (rows) after the new fee came into effect.
    Regards,
    Barry

  • Tachometer signal to RPM in DIADEM

    Is it possible to generate rpm signal in DIADEM and how to change the reference value (sound pressure to db in order tracking tracking calculation)? Thanks

    Hi there, 
    DIAdem is intended to find data, to analyze data, to run analyses, to create reports, and combine all functions to a script. Data is not generated in DIAdem. If you have an rpm signal that you would like to read into DIAdem for analysis, you would use the DIAdem NAVIGATOR to load this data into DIAdem. In the ANALYSIS tab, you will be able to run the data through an equation to convert from sound pressure to db. To help you begin the process of importing data and analyzing the data, please refer to DIAdem Help->Contents->Basics->Navigator and Analysis. 
    If you have any further questions, please give a specific instance or describe in more detail what you would like to do. From what I am understanding of your post, the answer is yes, you can use the Analysis tab to convert data, yes you can import signals that already exist into DIAdem. Please post back if you have any further questions and good luck with your project! 
    Regards,
    Jackie 
    DAQ Product Marketing Engineer
    National Instruments

  • Finding the shortest path router for the router tracking purpose

    Hi all,
    A Question asking you regarding to routers' tracking information.
    We keeps all the router infomation of our subnet in a file name "routers.txt" in this format:
    1 2 1
    2 4 1
    4 3 1
    1 3 5
    This states there are four routers, the distance between routers 1 and 2 is 1, between 2 and 4 is 1, etc.
    I need to write a Java program to keep track the shortest path between routers, I would understand that we can get this done easily in Java, but I am not a Java Savvy. I'm new in Java, would somebody help me to the right direction?
    In order to keep track the routers in our subnet easily,the output would look something like:
    Router 1
    To Router Distance Vector
    2 1 2
    3 3 2
    4 2 2
    Thanks very much,
    Cait.

    Hi kksenji,
    Well, because of the webform, it's not obvious to see. The output would be simple. From the input, for router 1 to router 2, the shortest distance is 1. For router 1 to router 3, the shortest distance is 3, for router 1 to router 4, the shortest distance is 2 and so on. The middle vector that it went through is 2 for every route. Hope this makes sense.
    Just try to solve the problem with the shortest distance, and I have a hard time to figure out the algorithm for this as well as how to get this started.
    Thanks, Cait.

  • "Export audio of selected range markers to separate files" icon is grayed out in Markers window. Tracks show start times but no end times, yet duration is calculated.

    I have one big wav file of segued tracks as a mixdown and inserted CD markers where I want marked tracks. "Export audio of selected range markers to separate files" icon is grayed out in Markers window. Tracks show start times but no end times, yet duration is calculated. Why can't I export these marked portions as separate files?

    the markers durations need to be configured, there is an easy way to do this using your existing markers.  click the start time of marker 2, this should change to edit mode to type in a new number, just copy the numbers cmd/ctrl+c. then click the end time of marker 1 and paste, cmd/ctrl+v.  now repeat for the rest of the markers, and on the last one enter a value for the end time or click and drag on the duration to manually extend it. once all the markers have a duration, the button should be active to export.

  • Internal calculation of the font tracking (text running width)

    Is it true, that in the english version the internal calculation of the font tracking (text running width) in InDesign is hard-coded in inch and could not changed in cm in the options. (I know that I could do this for the rulers)
    So we better should use a german version to avoid Problems with print shops or design agencies in Germany.

    In the past we had problems here in Germany when we use the english version of InDesign. We have some big files, each about 1200 pages and when we share this files with print shops or design agencies which uses the german version they had sometimes problems with the font tracking eg text run out of text boxes and so on. Adobe told us that can happen because the english version works internal with inch and we could not change this. So we start using the german version and all the problems where solved. Now we want to update to the actual version and had an internal discussion if we should order the english or german version.

  • Besoin d'idées de programmation :Comment calculer une distance entre 2 obstacles avec NXT minstorm

    salut
    je dois déterminer la distance avec le NXT mindstorm entre deux obstacles  et ensuite comparer cette distance a la taille de ma voiture et faire un creneau comme sur la video que j'ai mi en piece jointe http://dl.free.fr/obRxbi3EV Mais je bloque est ce que quelqu'un aurait des idées qui pourrait m'orienter un peu. Je laisse mon vi
    Pièces jointes :
    why not.vi ‏26 KB

    Je vois un peu ton problème, c'est plus au niveau de la conception de l'algorithme et de la mise en place de celui-ci sous labview.
    REAPEAT
    Faire rouler la voiture à l'infini
    Repeat 
            test capteur de position > à une certaine distance
            if capteur de position < distance
                ralentir moteur
                repeat
                          lecture capteur position
                until capteur position > à une certaine distance ( fin du premier obstacle et donc début de mesure de la course)
    Repeat
               test capteur de position
               read motor (pour avoir la distance parcourue)
    until test capteur position < distance
    If distance parcourue > longueur voiture do créneau
    else
          continue
    UNTIL STOP
    Cela peut être un algo (c'est vite fait et sans test cel apeut aider)
    Greg S.
    CNRS
    LV 7.1 8.2 8.6 2009 2011 2012 2013
    LPMC - CNRS
    N'oubliez pas de complimenter cela fait toujours plaisir.

  • Design advice for vertical list calculations

    I'm extending a product management life cycle sharpoint 365 site,
    With purchase orders, magazine store, production targets (date based) and sold dates.
    So that in our production environment we can see how much is stored, how much can be sold, and what we need to buy in etc.
    The thing i'm a bit troubled about that sharepoint lists are not Excel, but this has to be done with Sharepoint lists.
    They prefer not to have edits directly in the aspX code, but editing workflows in Sharepoint designer is OK
    In excel one could easily add a cell formula with the content of Sum the value in the row left of me and add it to the value of myself one row earlier (like B2 contained  = A2+B1 ); and then copy that formula to the whole B column
    The nice thing with Excel is that when you change some value in A, like A2 = 10 and and later A5=10 then B7 would be 20
    Changing later a value like A3 =4 would recalculate quickly and re- totals the B column.
    Sharepoint Lists, calculated fields work only horizontally, so to do some vertical actions one needs a workflow, and do some lookup based upon (calculated previous) ID field, ea ID -1. Or stepp through to All ID's till current. What borders me a bit, is that
    my list will grow large at some point. So stepping through all ID's to sum them till current Item seams 'slow' to me, on the other hand if i only check the previous version then the whole column (B) wouldnt be recalculated, if someone changed an older entry.
    Extremly simplified i have a single list with the columns below (where stored act as my B column).
    bought | stored | sold
    0 | 5 | 0
    2 | 5 | 0  (raw products need to be manufactured before stored so they're added 1 by 1 later).
    0 | 6 | 0
    0 | 7 | 0
    0 | 4 | 3 (but when sold we can subtract directly from storage)
    Ofcourse i need some horizontal calculations because i need to track as well if there has been bought enough for production. But i wonder what would be Wise to do, base thing on current ID and ID minus 1, or to walk through all items by work flow (recalculate
    whole list), or like with changes; recalculate from current changed till the end  (not sure how to detect end yet.. but well something like that).
    I just wonder what would be wise here, and the best direction for this.
    The table i showed is a  extreme simplified, in fact also some other tables and workflows will be the feeders of the data.
    Its just that the whole thing makes me a bit worry and wonder what would be best, and maybe i oversee something maybe there are other ways for vertical calculations over lists.

    After lots of thinking, and seeing how slow office 365 SharePoint reacted upon my list workflows.
    I've decided to use a "site variables list", in which I store variables as rows and their value in a columns.
    And I refer to them by ID (or one could use another indexed unique value).
    It's maybe not an exact calculation of the whole thing (build around several lists) but everything is a lot faster then stepping trough each item in a huge list. And it also allows for a bit more easy tweaking of these "vertical" calculations.
    If for some reason those calculations would need adjustments (by change of management definitions), I have easy access to those variables to adjust them.
    On a side note, when I use those variables, it turned out it worked a bit better to create in the workflow local variables, then do the calculation, and put it in the right table you want those numbers to appear in. As compared to directly referring to the
    total. It takes just 5 sec or so to update. With this method size of the lists have no almost no impact on the speed of the workflow now.

  • Functions in Calculation and Summary Fields

    Hi,
    I'll give a bit of background to my situation before describing the advice I'm looking for here.
    I am experienced Mac user and I have used AW a fair bit in the past, but since I've been working in a job which has Windows machines and uses a complex custom-written relational database for its main tool, I use it less often than I did, so I am a little rusty. It is the shortcomings of the complex relational database (which I do not have admin rights to) that has led me back to AW and its database module.
    Essentially, I am a complaints investigator, and the relational database provided by my employer is used to keep track of correspondence and various metadata associated with the investigation of the complaint. However, although it is called a Complaints Management System (CMS), it does not help me manage my caseload very well. I've previously tried to create an Excel spreadsheet that would help me manage my work, but it is not a database (or I am not sufficiently skilled with Excel) and I cannot get it to provide me with what I want.
    So, my problems.
    I have complaints (cases) assigned to me to investigate. These cases have differing priorities, which means differing time limits for completion of the investigation. The priorities and time limits are set out below:
    J (jurisdictional issues) - time limit = 1 month
    D (discretion not to investigate) - time limit = 3 months
    1 - time limit = 4 months
    2 - time limit = 6 months
    3 - time limit = 12 months
    The priority field in my AW DB is currently a 'pop-up menu' field, but I could change this to another type if this would be advisable.
    I have a date-type field in which I enter the date the complaint was received. I have an calculation-type field in which I calculate the age of the complaint using the function:
    =(NOW()-'DateReceived')
    This returns an age in days, which I input into a separate calculation field that divides the result of 'age in days' by 30, to give a rough approximation of the number of months old the complaint is (If AW has an equivalent to Excel's 'workdays' variable, I'd love to hear about it). This latter field is the one that I display in the main data entry view of the database.
    Given the priority assigned to the complaint, and the age of it, I am either 'On Target' or 'Over Target' for completing the investigation.
    Each month I have a meeting with my manager to review progress, and since the reports that can be extracted from the CMS are not very useful for this purpose, I want my AW database to help me generate reports that can form the basis of discussion in these meetings.
    Part A of My Query
    At present, I have a manually operated field, in the form of a pop-up menu, to indicate for each record (complaint) whether I am over or on target for completion of the investigation. I would like to make this a calculated field, so that the database keeps track of this for me automatically. Unfortunately, I'm either too dense, or not good enough with the syntax of AW functions, to be able to write a function which essentially does the following:
    IF 'Priority'=1 AND 'Age in Months'<4 THEN 'On Target' ELSE 'Over Target'
    - and then repeats that for the other priority possibilities.  It seems likely that the 'IF' function is what I'm after, but I haven't been able to get the syntax right to combine 'Priority' and 'Age in Months' in the format spelt out in the AW help, which is:
    =IF(logical,true value,false value)
    Getting the syntax of one part of this function right would be a good start. However, I suspect that I have a larger problem, in that I have 5 priorities to measure against and I need the overall calculation (that produces the 'On Target' or 'Over Target' results) to report in one result field. This means nesting the functions that look at the 5 priorities and 5 age limits. I've tried and failed to get the syntax of such nesting right, so advice on this is doubly welcome.
    Unfortunately, I have a sneaking suspicion that unless the answer is much more concise than I imagine it to be, there will be an additional problem: AW appears to have a character limit for the length of a function string in a calculation field which may be too short for my needs.  If you think this is an issue but that it can be solved through the use of intermediate fields (which don't need to be displayed in the main 'data entry' layout), I'm happy to give that a shot.
    Part B of my Query
    Even if the problem above cannot be solved, and I have to manually enter whether a complaint is 'On Target' or 'Over Target', I have a separate but related question for the reports I have to present to my manager.
    On these reports, I would like to have a summary at the top of the first page (in a grand-summary part, I assume) which gives a count of how many complaints are 'On Target' or 'Over Target' for each priority. Below that is a sub-summary part, ordered by the type of action that must next be taken in the investigation. (Getting that right may be a subject of a separate post at a later date.) The report must, of course, only report on those complaints that are still being investigated ('open complaints') and not those which have been completed ('closed complaints'). So, I need a function in a summary field which will present an accurate count of the number of open complaints that are 'on target' for priority J (with separate summary fields that do the same thing for priorities D, 1, 2, and 3), and a separate set of summary fields that will present a count of open complaints that are 'over target' for each type of priority.
    It might look a bit like this table below, with figures from the summary fields populating the cells in the third row:
    Priority
    J
    D
    1
    2
    3
    In / Out of Target
    In
    Out
    In
    Out
    In
    Out
    In
    Out
    In
    Out
    Number of Complaints
    My guess is that it is easier to have the summary field simply count all the complaints that are on or over target for a given priority, regardless of whether they are open or closed, since the report could be based on a saved search (match) which strips out all closed complaints. But if I'm off-beam with that idea, I'm happy to have another way of cracking this nut.
    Many thanks in advance to any Community members that take the time to try and help me with this.
    Andrew
    PS Cross posted in AWUG forum too, if people prefer to answer there.

    Hi Andrew,
    Part A:
    I've done some restating of the question, and distributed the calculations among several fields, not all of which need to be included on the visible layout. Other than formatting the Date fields and moving the 'Completed Date' field and its label, I've left this in the default "Layout 1" produced by AppleWorks.
    Field List:
    Priority: Popup menu with six items: 00, J, D, 1, 2, 3  Defaults to 00
    TL (time limit in months): Calculation:  CHOOSE('Priority',0,1,3,4,6,12)
    Received: Date. Option: Automatically insert today's date (ie. Date Record created) (may be edited)
    Target Date: Calculation:
    DATE(YEAR('Received')+INT(MONTH('Received')+'TL')/12,MOD(MONTH('Received')+'TL', 12),DAY('Received'))
    Remaining (Days): Calculation: INT('Target Date'+1-NOW())  (see revision below)
    Completed: Checkbox. Set default value to Unchecked.
    Completed Date: Date: Entered manually
    OnTarget: Calculation: IF('Completed',IF('Completed Date'<'Target Date',"On Target","Over"),IF(INT(NOW())>'Target Date',"Over","On Target"))
    The On Target field shows the current status of the case while still open, and the state on the closing date when it was closed.
    Having done that, I was unhappy with the Remaining field continuing to calculate an ever larger negative number after the case had been closed. Hence this revision below:
    Remaining: Calculation: IF('Completed','Target Date'-'Completed Date',INT('Target Date'+1-NOW()))
    Shows the number of days remaining while the case is open, the days remaining at completion if the case has been marked Completed and the completion date entered.
    Rsults (and some further formatting of the Layout) below.
    Part B:
    You will need Subsummary parts when sorted on Completed and on On Target. Fields can appear on  a Layout only once, so each subsummary part will need a separate Summary type field for each field to be summarized.
    Regards,
    Barry

  • Custom Calculation Script - Multiplication IF

    Hey Adobe peeps, need help here. I'm not a programmer by any stretch of the imagination, but I am resourceful, BUT I have yet to find a concrete answer for this, nor can I get any of my test formula's to work.
    I have a fillable PDF that is used in a field service environment where employees track their time. I want them to be able to input the data in i.e. hours*rate and it automatically populate the price/cost. Now this is very easy to do with the built in product function, but the problem here is that they have multiple fields to fill out. See below.....
    So basically the "Extended Price" field depends on what they enter into either the "Days", "ST Hours", "Rate, "OT Hours" or "Rate" fields.
    The calculation should be based on 2 of the 5 fields being filled out. For example, here are the 3 possible scenarios:
    Scenario 1: SP Extended Price1=SP Days1*SP ST Rate1
    Scenario 2: SP Extended Price1=SP ST Hours1*SP ST Rate1
    Scenario 3: SP Extended Price1=SP OT Hours1*SP OT Rate1
    They won't ever fill out any more than 2 of the fields so it needs to be an 'if' type of function. I've spent hours on this already, like I said, I'm not a programmer.
    Please help.

    If they really won't be filling in more than one of those sets of fields, the custom calculation script could be:
    (function () {
        // Get the field values, as strings
        var s1 = getField("SP Days1").valueAsString;
        var s2 = getField("SP ST Rate1").valueAsString;
        if (s1 && s2) {
            event.value = +s1 * +s2;
            return;
        var s3 = getField("SP ST Hours1").valueAsString;
        if (s2 && s3) {
            event.value = +s3 * +s2;
            return;
        var s4 = getField("SP OT Hours1").valueAsString;
        var s5 = getField("SP OT Rate1").valueAsString;
        if (s4 && s5) {
            event.value = +s4 * +s5;
            return;
        // If none of these apply, set the field to blank
        event.value = "";

  • Payment & Deduction Calculation

    The no loss / no gain principle is a payroll process ensuring that an
    employee doesn’t receive more or less pay when they are absent for
    sickness reasons than if they were at work.
    The ‘No loss / no gain’ principle applies to the following employees if
    they are on Short Term Sick Leave or WCB:
    • Regular Full Time,
    • Temporary Full Time,
    • Regular Part Time (with Benefits),
    • Job Share (with Benefits).
    There are 2 different ‘No Loss / No Gain’ rules for STSL and WCB.
    STSL
    Employees can be on STSL for no longer than 2 weeks.
    There is no WCB reimbursement in this case.
    Because the STSL payment is non-taxable, the employee could get a
    higher pay being on STSL than being at work.
    For this reason, an adjustment needs to be made to their earnings, so
    that the ‘take home pay’ does not change while the employee is on STSL.
    The difference resulting from the calculation represents the ‘no loss /
    no gain’ earnings.
    WCB
    Calculation
    For WCB absences, the process is as follows:
    1. Calculate ‘Regular Take Home Pay’, i.e. all regular earnings for
    the pay period, plus the number of WCB hours multiplied by the
    employee’s rate of pay.
    2. Calculate the Gross-to-Net pay based on the Regular Take Home
    Pay (Net #1).
    3. Calculate the Gross-to-Net pay based on the earnings excluding
    the WCB hours (Net #2).
    4. Add the estimated WCB reimbursement to Net #2. *
    5. Calculate the difference between Net #1 and Net #2. The result
    is the ‘Taxable Supplement’.
    6. Redo steps 2 to 5 including the Taxable Supplement, until the
    difference is negligible (TBD).
    Because of concurrent employeement we are unable to capture the
    information.
    Please advise us how to take care this issue with conccurent employeemt.
    Thanks
    JOhn

    Are you not using Arears? Health Benefits are not able to be deducted if no gross earnings are available. You can use arrears to keep track of what an employee will owe for their helath insurance upon their return.  There are ways to set up payments when an employee returns,make payments to the employer while they are out on leave by brining in cash or a personal check, or can be deducted before they leave in order to keep the arrears buckett cleared.
    However, if your situation is that the Employer is wanting to cover the cost of the employee benefits while someone is out on leave then work with your FI team to see how they would want to accomodate this process. This would work if you are not using arrears at all.  If arrears are being used and the Employer wants to pay the coverage for them then you need to set up a payment that would allow for benefits to be paid.
    I am not sure whic situation you are really in and if you could provide more about:
    Are you using Arrears
       Which rule for Arrears did you select (Take all or nothing, Take all, Take what you can and forgive the rest.....)
    Do you want to use Payrment options
    Do you want the ER to just cover it?
    Just as a side note, you may need to check the health plan. If it is a Cafateria Plan and it is allowing for the health insurance to be pre tax, the rule to allow those pre tax dollars on the W-2 are ONLY applicable if it is actually coming out of earnings earned by the employee most of the time.  Just an FYI

  • Need help with date and time calculations please

    Hello there.. Im stuck, and im hoping someone can help..
    Working on a list to manage and track PTO.  User completes PTO request form,
    Fields
    Name
    Start Date (with time)
    End Date (with time)
    Total Number of Days/hours requested: (calculation)
    Full Day: (Yes/No)
    ok business need
    user has the ability to request a certain number of hours as opposed to a full day.
    After searching around on google. I found this calculation to help me figure out how many BUSINESS days being requested.
    =IF(ISERROR(DATEDIF([Start Date],[End Date],"d")),"",(DATEDIF([Start Date],[End Date],"d"))+1-INT(DATEDIF([Start Date],[End Date],"d")/7)*2-IF((WEEKDAY([End Date])-WEEKDAY([Start Date]))<0,2,0)-IF(OR(AND(WEEKDAY([End
    Date])=7,WEEKDAY([Start Date])=7),AND(WEEKDAY([End Date])=1,WEEKDAY([Start Date])=1)),1,0)-IF(AND(WEEKDAY([Start Date])=1,(WEEKDAY([End Date])-WEEKDAY([Start Date]))>0),1,0)-IF(AND(NOT(WEEKDAY([Start Date])=7),WEEKDAY([End Date])=7),1,0))
    This works great as long as its a [Full Day]="YES", displays results in column labeled Number of days
    now if [Full Day]="No", displays results in column labeled Number of Hours
    BUT this is my issue (well part of it) it calcuate the correct number of hours.. but puts a "1" in "Number of Days" why.. dates have not changed.. I think Its something with the above calculation but I could be way off.
    the end result is I need number of days to concat with number of hours 
    i.e 1 full day 4 hours  1.4
        0 full day 5 hours  0.5
        1 full day 0 hours  1.0
    so that the total can be deducted via workflow.. from the remaining balance in a tracker. (seperate list) 
    Any angels out there??

    Posnera-
    Try changing time zones and see if the travel itinerary times change.
    Fred

  • Interest calculation procedure in Dunning

    How to calculate the Interest in dunning?
    What are the steps needed to be configured for the interest calculation for the dunning process?

    This configuration allows you to charge interest on overdue customer accounts. Interest can be calculated by using the line items or overall account balances. SAP keep tracks of the date of the last interest run and stores it in the customer master record. 
    First create an Interest Indicator. 
    OB46 - Interest Settlement Calculation Type 
    Int Calc. Type 
    P - calculate interest based on line items. 
    S - calculate interest based on account balances.
    Secornd, make it avaliable to the interest run program. 
    OB82 - Interest Terms 
    Third, determine the interest rate that will be used by the calculation. 
    OBAC - Define Reference Interest Rates 
    OB83 - Enter the Reference Interest Rates Value 
    Fourth, assign the interest indicator to the reference interest rate. 
    OB81 - Define Time Dependent Terms 
    Finally, determine the how and to which accounts the interest program will post. 
    OBV1 - Prepare Interest on Arrears Calculation

  • Calculation of Safety Stock and Reorder Point under Forecast Model T

    Hi Gurus!
    Happy Holiday!
    I would like to ask for your assistance on how the the safety stock and reorder point was calculated with the following values available. I would really appreciate it if you could give me details on the calculation.
    Below are the values:
    Basic data
    Forecast date        01.12.2009        Unit                  CTN
    Forecast model       T                 Service level         0.0
    Period indicator     M                 Paramtr profile
    Control data
    Initialization                                Tracking limit        4.000
    Model selection      A                 Procedure selection   2
    Parameter optimizatio                Optimization level    F
    Alpha factor         0,10               Beta factor           0,10
    Gamma factor       0,00              Delta factor          0,30
    Basic value           5.464-           Trend value          5.603-
    MAD                      4.758            Error total              4.722
    Safety stock         1                   Reorder pnt.          1
    No. of values
    Consumption           6                Forecast periods       1
    Initial. periods      0                Fixed periods          0
    Periods per season   12
    Historical data
    Period                Original     Corrected value
    11.2009                3.000              3.000
    10.2009                0.000              0.000
    09.2009                0.000              0.000
    08.2009                9.000              9.000
    07.2009               21.000             21.000
    06.2009               20.300             20.300
    Forecast results
    Period                Original     Corrected value
    12.2009                0.000              0.000
    Appreciate your assistance!
    Thank you and Happy Holidays!
    Ji

    Sweth, you are asking for consulting, and in my opinion it is way beyond what can or should be reasonable to achieve in such a forum. You are asking complex questions, that most probable have more than one possible answer.
    I suggest that you get on-site help from a knowledgeable and experienced consultant. These are crucial business issues, and should be dealt seriously.

Maybe you are looking for

  • How to get the return value of a LOV item using javascript

    Hello, I am trying to put an onchange attribute in the HTML Form Element Attributes field of a LOV item. The javascript should access the new return value of the item. How is this done ? All the methods I have tried give only the display value, not t

  • Query regarding PLD

    Hi, I'm going to modify an existing report using PLD. I've added a database field. But the tables available in the Content Tab is limited. How can I get other tables to map a column with that field? I can use Query Print Layout but is there any other

  • Purchase order archived long back. User wants to retrieve specific POs.

    Purchase order archived long back in 2004. These POs are not displayed in ME23n and ME2l. User wants to retrieve specific list of POs and make them displayed in ME23n & ME2l. Is there way to retrieve only selected (say 100 specific Purchase orders or

  • How can I get account support?

    I have paid my membership but when I open an application on CC it says "we are having trouble verifying your account". please advise  how i can fix this

  • Importing java classes ?

    I'm trying to use "Java Embedding" process activity to add a simple java snippet, this code needs a set of classes. I've copied the required jar files to \OraBPELPM_1\integration\jdev\jdev\lib\ext. But I'm not able to figure out where to add the impo