Complicated price formulas help

Hello,
I have a membership renewal form that I am making and I am quite new to writing formulas and scripts. I have provided a list below of what I would like the form to do, and would like to know what the best way to accomplish each of these things would be so I can seek out tutorials on how to do them. Please provide your input if you think it would be easiest to accomplish these things using Javascript, FormCalc, Action Builder, or a certain function in any of these options.
I have a date field in the form that defaults to the current date and I would like to:
Add a fee based on the date:
I would like the form to automatically add a $35.00 admin fee if the current date is between May 1st and December 31st. No admin fee if the date is between Jan 1st and April 30th.
Price based on Drop Down menu and date:
The user selects their membership type from a dropdown menu. Currently the Membership Fee is populated based on their drop down menu choice. However, I would like the Membership fee to be calculated automatically based on a) the drop down menu choice and b) the date. There is a different Membership Fee depending on the date, for each of the drop down menu choices. So for example,the "Full Membership" choice in the dropdown menu should calculate the Membership Fee based on the current date as follows:
April 1st to Sept 30th: $310.00
Oct 1st to Oct 31st: $155.00
Nov 1st to Nov 30th: $129.00
Dec 1st to Dec 31st: $103.00
Jan 1st to Jan 31st: $388.00
Feb 1st to Feb 28th: $362.00
March 1st to March 31st: $336.00
Any input as to how I can get my form to do these two types of calculations would be greatly appreciated.

Hi,
So you want all rows from table_1, whether or not they have a match in table_2. That's an outer join.
Normally, you would do that by saying
FROM             table_1
LEFT OUTER JOIN  table_2  ON   table_1.equipment = table_2.equipment
                          AND  table_1.meter_id  = table_2.meter_idbut in this case, a match isn't just having the same equipment and meter_id, it means having the same equipment and meter_id on the specified date and building, So the join condition is a little more complicated:
FROM             table_1
LEFT OUTER JOIN  table_2  ON   table_1.equipment = table_2.equipment
                          AND  table_1.meter_id  = table_2.meter_id
                          AND  TO_DATE (table_2.date_of_reading, 'mm/dd/yyyy')
                                                 = :target_date
                          AND  table_2.building  = :target_buildingAnother approach is to outer-join table_1 to a sub-query, consisting of:
    SELECT  ...  -- relevant columns
    FROM    table_2
    WHERE   TO_DATE (date_of_reading, 'mm/dd/yyyy') = :target_date
    AND     building = :target_building
)

Similar Messages

  • I bought(own) and gifted(friend) an app which i was charged 2 different prices please help me with this!!!

    I bought(own) and gifted(friend) an app which i was charged 2 different prices please help me with this!!!

    Apple does not sell an unlocked iPhone. Some cell carriers offer the option to purchase an unlocked phone at a significantly higher price. Your friend could go to Hong Kong and buy an unlocked phone from an authorized carrier but if he has any problems with the phone, he will need to take it back to the country where he purchased it.

  • Unit price formula syntex issue in Contract line item

    Hi All,
    I have uploaded price condotion XML from SRM to Sourcing. I have defined integarted Master agreement and added 0ICT item price condition for service and materila. I was able to add line item and publish to SRM.
    I tried creating new custom price condition in Sourcing adn saved. After this I am not able to add line item in master agreement. It is showing systex error in unit price formula under document setup->formula.
    I faced this error in past when I haven't added item price condition in master agreement type as default for material and service.
    I don't know what went wrong. I have inactivated the custom price condition, imported the standard SRM again via XML and deleted priviously added price condition from the master agreement type and defualt with new one but no luck. I tried creating new master agreement type also but same error.
    Please let me know if anybody has faced the issue in past and able to fix it.
    Regards,
    Deepak

    Hi Avinash,
    Thank you very much dear...It is appearing in the report as you said.
    I am wondering why  it is not appearing in the standard Plan line item reports CJI4 or S_ALR_87013542 ? any clue.. Anyhow I have given points for your reply.
    Thanks once again for ur reply..
    Regards
    Tajammul

  • Question: why is it so complicated to get help from Adobe? i grow tired of this run around.

    why is it so complicated to get help from Adobe? i grow tired of this run around.
    i have been working for 30 minutes trying to get help.
    you have the money. think Apple. make it user-friendly. make it happen.
    disgusted.

    Hi Richard,
    Sorry you're having trouble. What is your question or issue?

  • Complicated Formula Help

    I have a very complicated formula and I would really like to use MDSHIFT and SUM at the same time but I get a syntax error if I do. No idea how to write this without turning this formula into a 2 page nightmare.
    Here is what I'm trying to do:
    Sum up the measure Volume for the last three months for a number of specific customers. I am doing a check on if its January so that I can hardcode Oct, Nov, and Dec but I need to shift on the years and sum up the customers and its getting very ugly. In addition I need to do this for various customers and then divide by others, etc so its going to get worse than I'm putting down here.
    FIX ("Forecast")
    IF (@ISMBR(JAN))
    "Volume" = @SUM(@MDSHIFT("Volume"->"Actual"->"Oct"->&fcstYear,-1,YEAR,), "customer1","customer25","customer30")

    Hi Jeanette,
    You cannot use @MDSHIFT in @SUM function as @SUM will be expecting a member name where as @MDSHIFT function will result the member value.
    Also I guess you done need to mention &fcstyear in member combination as you were moving across years
    hope this will work for you...
    FIX ("Forecast")
    IF (@ISMBR(JAN))
    "Volume" = @MDSHIFT("Volume"->"Actual",-1,YEAR,,10,Time,) + @SUM("customer1","customer25","customer30")
    - Krish

  • Need formula help - "lookup" or something similar

    Here is my scenerio: 2 Numbers' spreadsheets within a single file. One spreadsheet is strictly for data - behind the scenes stuff. It contains a long list of items and prices associated with them (per unit). Then I have a spreadsheet that will pull information from that data spreadsheet. For example, if I start typing latex it will finish automatically with latex paint. I press enter and it inputs that price. From here, I can do all the calculations.
    Example:
    Row 1 Row 2
    Latex Paint .45
    Metal stud 10.00

    scolainsola,
    Perhaps this example will help. The first lines of the "Particular List" contain a copy of all the data items (colored yellow and hidden in use) so that the autofill feature will work as you described. Then as items are typed in the second table, corresponding values from the "Data" table will appear when the Enter key is struck.
    The formula for column B of the second table is:
    =IF(ISBLANK(A7),"",IFERROR(VLOOKUP(A7,Data :: $A$2:$B$6,2,0),"Not Listed"))
    and is enter beginning with the first typed-in Item, then copied down. This scenario presents a good situation for the use of IFERROR.
    If your list is very large, you may find it desirable to eliminate the the orange rows and build your autofill list as you go.
    pw

  • R/3 price formulas rewriting in IPC -which JSPs need to rewrite.

    we are using ISA 5.0 and R/3 . we have written some formulas in R/3 pricing procedure and these need to be re-write in IPC , I have gone through SAP note 809820  and SAP price userexit document as well .
    but  it is not clear that which JSPs we need to edit in order to write these custom formulas in JAVA.
    or either we need to create a new JSP's if this is the case where to assign these.
    my problem is I downloaded the all userexits from SAP to Eclipse , I stuck here  , where Exactly we need to change or create JAVA  code. Which JSP’s or JAR files we need to change.
    Thanks in advance  for Help
    Regards,
    Liz

    Hi Andrew
    Thanks for the reply !!
    The prices are now displayed in B2C/B2B web shop on the product selection screen. The note 302952 helped me to find out the issue and resolve it.
    still prices are not displayed in the Order Confirmation screen. I found note 889706 for this problem but still unable resolve the issue.
    I am working on SAP CRM 5.0 SP15 .
    Could you give some suggestions / notes to resolve this issue ?
    Cheers !!
    Hemant

  • India localization oracle fast formulas help

    hi ..
    anybody help on oracle india localization fast formulas, absence mgmt setup, online payslip setup and tax declaration set up in payroll and sshr basic setups for absence mangt and transfer setup. plz send me on [email protected]

    send me a contract, buy me a ticket, and i fly over.

  • 19 items on a menu and each has text, image and price. HELP???!!!

    I have a UITableView with a menu on it. I would like to have a description, picture, title and price for each item. there are 19 items so i figured that creating 19 views in the storyboard would not work. Is there a way of doing this? I have the head first iphone development book and it has an app almost the same as mine called DrinkMixer but it is using xcode 3.1 not 4.2. Please help.
    iCrazy23

    Go to the iOS Dev Center - download the UICatalog sample and see these links:
    iOS Human Interface Guidelines
    iOS Starting Point
    Xcode 4 User Guide ; Xcode Basics Help
    App Development Overview
    iOS App Development Workflow Guide

  • Jsp newbie - quantity*price=�total - help!

    Hi, im new to jsp and have made a few pages, and can display them using Tomcat, ive made a page counter and managed some validation of a form, but i cannot get this to work:
    i have a form where you can select a product, then type in the price and quantity, so when you press order, it should display a page showing you what you chose and the total cost, (tryin to also use dp2??) , but im gettin in a right mess! i have ziped the two pages here: http://www.severnvalebathrooms.co.uk/ordermarbrex.zip
    if someone could have a look, any help would be great!
    thanks

    what level feedback do you have on your server.
    look at variable names,
    you have:
    <%
        String quantity    = request.getParameter( "quantity"    ); 
        String price       = request.getParameter( "price"      );
                                                 // Create a convert for 2 decimal places
        java.text.DecimalFormat dp2 
                            = new java.text.DecimalFormat( "�#,##0.00" );
                                            // convert a string to type int                
        int    quantity = Integer.parseInt(   quantity ); 
                                            // convert a string to type double         
        double price    = Double.parseDouble( price    );
        String strips      = request.getParameter( "strips"      );     
        String whofor      = request.getParameter( "whofor"      );
        String bluemosaic  = request.getParameter( "bluemosaic"  );         
        String greenmosaic = request.getParameter( "greenmosaic" );         
        String beigemarble = request.getParameter( "beigemarble" );         
        String delivery    = request.getParameter( "delivery"    );
        if( bluemosaic  == null ) bluemosaic  = "";
        if( greenmosaic   == null ) greenmosaic   = "";
        if( beigemarble == null ) beigemarble = "";     
    %> you should have like;
    <% 
        String quantity    = request.getParameter( "quantity"    ); 
        String price       = request.getParameter( "price"      );
                                                 // Create a convert for 2 decimal places
        java.text.DecimalFormat dp2 
                            = new java.text.DecimalFormat( "�#,##0.00" );
                                            // convert a string to type int                
        int    quantities = Integer.parseInt(   quantity ); 
                                            // convert a string to type double         
        double dPrice    = Double.parseDouble( price    );
        String strips      = request.getParameter( "strips"      );     
        String whofor      = request.getParameter( "whofor"      );
        String bluemosaic  = request.getParameter( "bluemosaic"  );         
        String greenmosaic = request.getParameter( "greenmosaic" );         
        String beigemarble = request.getParameter( "beigemarble" );         
        String delivery    = request.getParameter( "delivery"    );
        if( bluemosaic  == null ) bluemosaic  = "";
        if( greenmosaic   == null ) greenmosaic   = "";
        if( beigemarble == null ) beigemarble = "";     
    %> then change output vars to reflect this at bottom of page.
    also i would do some checking of input vars
    try calling this;
    process_marbrex.jsp?quantity=xyzkind regards,
    g00fy

  • Conditional formula help

    Post Author: scd07
    CA Forum: Formula
    Hi, Crystal Reports novice here...
    I have been asked to take out any lines in several reports with all "0s" in the columns.  I have tried formatting each field to suppress Zeros and then right click on the Description column and click "suppress if blank".  Didn't work.  I then tried to write a conditional formula that I put under the description field (field 1), "common", "formula" and "suppress".  The formula followed the following:
    If = 0 and = 0 and = 0 then true else false
    Unfortunately this also didn't work.  I don't know if my formula is incorrect or if I am entering it in the wrong spot.  Any help would be very much appreciated!  Thank you!!

    Post Author: Bandit07
    CA Forum: Formula
    Right click on what you want to suppress and click the x-2 button next to suppress.  Put your formula in there.
    = 0 and = 0 and = 0,  If all of these conditions are true then it will suppress.
    B

  • MDX formula help

    The formula below works just fine but I want to use a UDA driven member in Member Range and need help.
    IIF(
    Count(
    Intersect(
    {MemberRange( [Jan],[Apr] )},
    {[Time].CurrentMember}
    ) = 1, [Actual], [Forecast])
    I tried with
    IIF(
    Count(
    Intersect(
    {MemberRange( [Jan],UDA([Period],"CurrMonth") )},
    {[Time].CurrentMember}
    ) = 1, [Actual], [Forecast])
    but I get an error Error(1260052) - Syntax error in input MDX query on line 4 at token ')' CalcMbr
    not sure why is this not working - I think UDA() can result in a set but member range is expecting a member only??
    Please suggest any ideas to correct the code.

    also tried with {[Jan]:UDA([Period],"CurrMonth")}
    instead of {MemberRange( [Jan],UDA([Period],"CurrMonth") )} - but no luck
    Any suggestions?

  • Group Formula Help

    Post Author: dmface15
    CA Forum: Crystal Reports
    I have a report that identifies employees and what taxes that employee pays. For example,
    John Doe
    OASDI           $2500
    Medicare        $625
    Jane Doe
    Medicare       $1750
    Michael Smith
    OASDI          $1630
    Medicare       $783
    The report is grouped by Employee name and tax code. The reason for grouping by tax code is because the tabale i am using to get tax code has records for each pay check the employee has received. Here is the problem. I need to create a report that will give me all employees who pay Medicare AND OASDI, all employees who pay ONLY Medicare. Therefore, when I run the report for employees who pay Medicare AND OASDI I should only see Michael Smith and John Doe. If i run the report for all employees who pay ONLY Medicare I should see only Jane Doe. Right now, I am having trouble with creating a formula whether it by group selection or record selection. Can anyone help me out? I would appreciate it. Thanks.

    Post Author: kcheeb
    CA Forum: Crystal Reports
    Have you tried suppressing the group and detail sections based on the report type and count of tax code records? Assuming There are no people with only OASDI tax codes.
    The other option would be to use sql to return you only Medicare people or OASDI & Medicare people.

  • Need formula help - how do i fin duplicates in a list

    I have a list of text data and want to remove duplicates. I think I know how to do it... but I've done a fair bit of searching here and elsewhere and just don't understand how to set it up.
    I assume I should use the Countif function... and then compare the each cell to the entire list to determine if it is unique. Then I get a 1 or 0 result based on whether the data element recurs in the list.
    Problem is the setup and syntax.... I've done a very very little bit of this but don't have a good handle... searching to this point (user guides and forums) I haven't found answer... I know the answer is out there, but I need to get solution as quickly as possible.
    any help greatly appreciated.
    Thanks
    darren
    Oh - number 09 on 10.5.8

    dnim wrote:
    I have a list of text data and want to remove duplicates. I think I know how to do it... but I've done a fair bit of searching here and elsewhere and just don't understand how to set it up.
    I assume I should use the Countif function... and then compare the each cell to the entire list to determine if it is unique. Then I get a 1 or 0 result based on whether the data element recurs in the list.
    COUNTIF($A,A) by itself will give you a 1 if the cell contents are unique within the list, and a larger number if there are duplicates.
    =IF(COUNTIF($A$1:$A2,$A2)>1,"XXXXX","")
    Will leave cells in rows containing the first occurrence of a particular value in a list 'blank'* and mark rows containing subsequent occurrences of the same value with XXXXX (or whatever text is placed between the quotation marks at that position in the formula.
    Results of the second formula (in column C) may be isolated using the "Show rows that match the following" in the Reorganize dialogue, and setting the condition to "Column C"    is not blank
    Oh - number 09 on 10.5.8
    Looks like your profile needs to be updated—currently says 10.5.5.
    Regards,
    Barry

  • Formula help needed

    Hi,
    I have a sheet with abt. 3.000 rows. From one of the rows I want to extract the date. The row looks like this:
    Festgelegt für 5. September 1946 von 09:15 bis 10:15, that is a textstring
    So in the first field I used part to get the Date "5. September 1946" this works fine.
    In the next step I used left;4 to extract the word "Fest", this works fine to
    Now in the next step I want to work with "if".
    What I would like to have a formula that looks like this
    If leftstring4="Fest" than get the partstring"5. September 1946" an fill the field with this date.
    Any help available
    tks in advance
    olaf

    Hi Yva,
    still one problem with the formula.
    "Urlaub
    Festgelegt für 25. Juni 1977 von 09:00 bis 10:00 25. Juni 1977
    Portugal
    Festgelegt für 6. Juli 1977 um 23:00 bis 7. Juli 1977 um 00:00 0"
    as You can see the first row works, but the second not why.
    The errorcode says "could not find " von "
    any idea ?
    like to hear from You
    regards
    olaf

Maybe you are looking for

  • Screen Keeps Freezing & Sleep Wake issues

    I have a 17" Macbook Pro and the screen keeps freezing.  The computer doesnt freeze because when i depress the volume buttons i can still hear the beeps or when i hit F8 music from my itunes starts to play. Also,  60% of the time when my computer goe

  • Acrobat Standard X - Alignment & Sizing

    When I highlight and try to align or size text fields, it makes copies of them on top of each other rather than doing what I want.   Any idea on a setting I am missing or something that I am doing incorrectly?

  • IPhone 3G running 3.1.2 still having intermittent loss of data services

    My wife's 3G is randomly indicating that she has no internet connection, so she can't get data and/or send SMS messages. Even though she's in a spot at work where it used to always work fine. Her 3G has the latest 3.1.2 firmware and has gotten all of

  • Cyclic network issue after recent update

    This topic is covered in a recent post but thought I would highlight it in a separate post now that I know more about it. Having installed the recent Udev update on a virgin Noodle system, my network (Internet via LAN and Cable using dhcp) goes throu

  • Oracle Schemas

    I have come to Oracle (specifically 9i) from SQL Server 2005 and have discovered that the concept of a "schema" seems to be quite different between the two databases. In Oracle, a schema it appears to model a user (e.g. HR, OE, and QS), while in SQL