[REQ] Javascript to calulate taxi rates

Discussion in 'Design' started by Rodder7, Jun 17, 2009.

  1. #1
    I need a java script that will do rate calulations.

    1- Initial Cost
    2- First Mile Charge
    3- Each additional mile
    4- Total Charge
     
    Rodder7, Jun 17, 2009 IP
  2. sikka2010

    sikka2010 Well-Known Member

    Messages:
    1,578
    Likes Received:
    143
    Best Answers:
    0
    Trophy Points:
    175
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Do u have a specific budget ?

    i am willing to give this a try.

    thanks
    sikka
     
    sikka2010, Jun 17, 2009 IP
  3. Rodder7

    Rodder7 Active Member

    Messages:
    451
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    88
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    under $20 bucks(not 19.99) :)
     
    Rodder7, Jun 17, 2009 IP
  4. porsche

    porsche Banned

    Messages:
    125
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    PM Sent
    Please check
     
    porsche, Jun 17, 2009 IP
  5. Rodder7

    Rodder7 Active Member

    Messages:
    451
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    88
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    -------------->>>>>>>>>>>>>>>Just up-ed the price to $25<<<<<<<<<<<-----------------

    UPDATE: I only need the total from the milage * cost per mile + initial charge.

    MODS: can you move this post to programming if possible?? Thank you :)
     
    Rodder7, Jun 18, 2009 IP
  6. porsche

    porsche Banned

    Messages:
    125
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    Rodder7 ==> jona deepa <jonadeepa@gmail.com>
    Me ==> Budy Superyadi <budysuperyadi@yahoo.com>


    Based on this email:
    Make first revision:
    Last Revision:

    Finish Project can be seen on:
    Replied:
    First asking for the mistaken:
    Second asking for the mistaken:
    The last:
    I'm writing on his thread, because he never replied my email to show his good attitude.
    Anyone can tell me which part of my job that is wrong?
    I think this guy is only want have free script from cheating somebody
    If I create wrongly, especially the result is wrong, I'd say appologize to him, and you can get the scrip freely.
    But if what I've done is correct, I suggest you all DP member to be carefull from this guy.

    Before the project started, I was asking him for 30% DP, and he replied:
    Now, we can see this guy don't have money/he only wanna cheat you.
     
    porsche, Jun 19, 2009 IP
  7. Rodder7

    Rodder7 Active Member

    Messages:
    451
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    88
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #7
    porche,

    You didn't supply a working copy. I ASK 3 TIMES!!! I can post the code you gave me if requested and the email correspondence.

    An assault on someone isn't going to correct that.

    PS: Posting my name does bother me 'cause I have helped many with post and have a good rep here. :)

    PSS: The next time, get someone to help you first to complete the project if you're struggling and don't play games.
     
    Rodder7, Jun 19, 2009 IP
  8. Rodder7

    Rodder7 Active Member

    Messages:
    451
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    88
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #8
    Just so everyone is clear, this is what he sent me with different formatting 3 times and all non-working.

    
    <div>
    
        <form target="_blank" onsubmit="return window.confirm(&quot;You are submitting information to an external page.\nAre you sure?&quot;);">
            Initial Drop Charge : <input type="text" value="1.95" size="30" readonly>
            <br>
            <br>
             Charge per Mile     : <input type="text" value="2.1" size="30" readonly>
    
            <br>
            <br>
             Enter the Distance  : <input type="text" size="30">
            <br>
            <br>
             Total Charge          : <input type="text" value="" size="30" readonly>
        </form>
    </div>
    
    
    Code (markup):
    I could take the script porshe posted on this thread and possibly modify it to use but I don't steal other people's work and dollars/cents needs to be combined with cents showing 2 digits.

    Still open to some that can complete the script. You can see the format in porsche's post of what I requested.
     
    Rodder7, Jun 19, 2009 IP
  9. porsche

    porsche Banned

    Messages:
    125
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #9
    Hey, are you gonna play with me?!!!
    You post not my last script. Yes, it was my scrip, but it was the first or second and you show us only the html script, where is the java?!!!
    Show them my last script!!

    Or you can check on
    I sent you that file on my last email as my final work. Didn't you receive?!! Or you just deny it?

    Ok if you don't receive yet, just take a look! Is it correct?
    And you said, you've done the script by your self or someone else, show me!
     
    porsche, Jun 19, 2009 IP
  10. porsche

    porsche Banned

    Messages:
    125
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #10
    OK simple, if you don't want to check the URL I gave you, just copy and paste the scrip below and check is it working or not working.

    <html>
    <head>
    <title>Taxi Fare Calculation</title>
    <meta name="author" content="Amazehosting.com" />
    <meta name="copyright" content="Amazehosting.com" />
    <meta name="creator" content="Amazehosting.com" />
    <style type="text/css">
      fieldset{
        width: 180px;
        height: 200px;
      }
      legend{
        font-weight: bold;
        font-size: 20px;
      }
    </style>
    <script language="JavaScript">
    <!--
    
    function add()
    {
        var num1, num2, num3, total;
        num1 = 1.95;
        num2 = 2.1;
        num3 = parseInt(document.calcForm.num3.value);
    
    	var intPart = Math.floor(num1+(num2*num3));
    	var fracPart = ((num1+(num2*num3))-intPart)*100;
      
        document.calcForm.output1.value = intPart;
        document.calcForm.output2.value = fracPart.toFixed(0);
    }
      
    </script>
    </head>
    
    <body>
    <fieldset>
        <legend>Taxi Fare Calculation</legend>
    <form name="calcForm">
    
    <p align="center">Enter the distance:</p>
    
    <p align="center"><input type="text" name="num3" size="5"></p>
    
    <p align="center"><input type="button" value="Submit" onClick="add()"></p>
    <hr />
    
    <p align="center">Your Charge:</p>
    <p align="center">  $ <input type="text" name="output1" size="3" readonly> and Cents <input type="text" name="output2" size="3" readonly></p>
    
    </form>
    </fieldset>
    
    </body>
    </html>
    
    HTML:
    If my script working as what you want, just pay $25
     
    porsche, Jun 19, 2009 IP
  11. Rodder7

    Rodder7 Active Member

    Messages:
    451
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    88
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #11
    I'm sorry man, but you jacked me around and are still playing games. I'm not going to spend good money by someone attempting to push me around. sorry.

    It's really strange that after you got the last email, I came on the forum and INCREASED the price.

    Look, I don't have ill will against you. I stay busy at this and don't have time for this.

    I had another DP member attempt this and they had some difficulty with it, but you jerked me around in the emails by not providing a working script after I ask for it 3 times??? Come on. I'm sure you have other things to do than spam this thread because I won't do business with you???

    Work on a web site or ways to make online money. Why not make $250 instead of chasing $25 from someone you are trying to get upset(ain't working)???


    Mods: If you can please close this thread, that would be greatly appriciated.
     
    Rodder7, Jun 19, 2009 IP
  12. porsche

    porsche Banned

    Messages:
    125
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #12
    Hey, I'm not only look for the money!!!!
    I'm looking for satisfaction!!!
    I can do freely for you actually. But just be honest, is my script working or no?!!!
    SHOW ME OTHER DP MEMBER SCRIPT THAT YOU SAID ABOVE!!!
    I WANNA SEE!!!

    If you can't, I can see you just wanna play with me and DP members, just wanna ask script without pay as the contribution
     
    porsche, Jun 19, 2009 IP
  13. porsche

    porsche Banned

    Messages:
    125
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #13
    Somebody please try my script:

    
    <html>
    <head>
    <title>Taxi Fare Calculation</title>
    <meta name="author" content="Amazehosting.com" />
    <meta name="copyright" content="Amazehosting.com" />
    <meta name="creator" content="Amazehosting.com" />
    <style type="text/css">
      fieldset{
        width: 180px;
        height: 200px;
      }
      legend{
        font-weight: bold;
        font-size: 20px;
      }
    </style>
    <script language="JavaScript">
    <!--
    
    function add()
    {
        var num1, num2, num3, total;
        num1 = 1.95;
        num2 = 2.1;
        num3 = parseInt(document.calcForm.num3.value);
    
        var intPart = Math.floor(num1+(num2*num3));
        var fracPart = ((num1+(num2*num3))-intPart)*100;
      
        document.calcForm.output1.value = intPart;
        document.calcForm.output2.value = fracPart.toFixed(0);
    }
      
    </script>
    </head>
    
    <body>
    <fieldset>
        <legend>Taxi Fare Calculation</legend>
    <form name="calcForm">
    
    <p align="center">Enter the distance:</p>
    
    <p align="center"><input type="text" name="num3" size="5"></p>
    
    <p align="center"><input type="button" value="Submit" onClick="add()"></p>
    <hr />
    
    <p align="center">Your Charge:</p>
    <p align="center">  $ <input type="text" name="output1" size="3" readonly> and Cents <input type="text" name="output2" size="3" readonly></p>
    
    </form>
    </fieldset>
    
    </body>
    </html>
    HTML:
    Or just click here
     
    porsche, Jun 20, 2009 IP
  14. porsche

    porsche Banned

    Messages:
    125
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #14
    Have you tried my script?

    yes, you are busy with your time, cheating other people.
     
    porsche, Jun 20, 2009 IP
  15. porsche

    porsche Banned

    Messages:
    125
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #15
    Prolem solved and Payment Received
    It's just misunderstanding​


     
    porsche, Jun 21, 2009 IP
  16. Rodder7

    Rodder7 Active Member

    Messages:
    451
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    88
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #16
    the above was taken from a pm i sent AFTER your very kind apology.

    i would suggest not exchanging itraders for this one.

    again your apology is accepted and the project is finished. and you got paid for finally completing the work however late is was.

    thank you
     
    Rodder7, Jun 22, 2009 IP