Payment function

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ron

    Payment function

    I searched php.net last night for a payment function with no luck.
    Does anyone now if this exists? Want to pass in a loan amount, rate
    and term to return payment.

    Appreciate any leads.

    Thanks,
    Ron
  • Shawn Wilson

    #2
    Re: Payment function

    Ron wrote:[color=blue]
    >
    > I searched php.net last night for a payment function with no luck.
    > Does anyone now if this exists? Want to pass in a loan amount, rate
    > and term to return payment.[/color]

    You could write your own very simply by using the equation at the following
    address.



    Shawn
    --
    Shawn Wilson
    shawn@glassgian t.com

    Comment

    • Ron

      #3
      Re: Payment function

      On Tue, 18 Nov 2003 16:44:42 -0400, Shawn Wilson
      <shawn@glassgia nt.com> wrote:
      [color=blue]
      >Ron wrote:[color=green]
      >>
      >> I searched php.net last night for a payment function with no luck.
      >> Does anyone now if this exists? Want to pass in a loan amount, rate
      >> and term to return payment.[/color]
      >
      >You could write your own very simply by using the equation at the following
      >address.
      >
      >http://www.rh.edu/~blought/fall03_ci...assignment.htm
      >
      >Shawn[/color]
      Shawn,

      Thanks for the reply. I'll code it and see if it works. Will post the
      results

      Ron

      Comment

      • Ron

        #4
        Re: Payment function

        On Tue, 18 Nov 2003 16:44:42 -0400, Shawn Wilson
        <shawn@glassgia nt.com> wrote:
        [color=blue]
        >Ron wrote:[color=green]
        >>
        >> I searched php.net last night for a payment function with no luck.
        >> Does anyone now if this exists? Want to pass in a loan amount, rate
        >> and term to return payment.[/color]
        >
        >You could write your own very simply by using the equation at the following
        >address.
        >
        >http://www.rh.edu/~blought/fall03_ci...assignment.htm
        >
        >Shawn[/color]
        All,

        I'm writing this as:
        echo "Future Value Calcualtion<br> ";
        //FV = PV(1.0 + R)N
        $fv=0.0;
        $pv=100000;
        $r=7.5;
        $n=360;

        echo "Future Value:<br>";
        $fv=$pv(pow(1+( $r/12)),360);
        echo "$fv";
        echo "end";


        After the future value echo I get:
        Fatal error: Call to undefined function: 100000() in
        c:\phpdev\www\w ebs\bzzzt\mortg age-calculated.php on line 37


        Any ideas?

        Thanks,
        Ron

        Comment

        Working...