Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting Excel Formula to FoxPro
Message
De
19/08/2007 12:52:09
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01249012
Message ID:
01249025
Vues:
23
>Can anyone help me convert this Excel formula to FoxPro.
>
>=RATE(N,-((P+Z)/N),P)*12
>
>Thanks

Julie,

In addition to Hilmar's reply, I do not think there's any way to do it but iteration
In case of a loan

n        = number of periods (eg months)
i        = % intrest per period (ie 3%/year = .03 becomes 3/12% or .25% or .0025 /month if month = period)
pmt      = payment per period
pv       = initial amount or capital
fv       = 0 at the end
type     = 0, we pay at the end of each period

then

pmt      = pv * i
           ---------------------
                    1
             1 - ----------
                  (1 + i) ^ n


There's no way - that I know of - to get the i isolated to either side of the equation (in order to get i = ....)
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform