home *** CD-ROM | disk | FTP | other *** search
- ********************
-
- FUNCTION Pv_of_fv
-
- PARAMETERS _fsum, _rate, _pperyear, _noyears
-
- IF TYPE("_fsum") + TYPE("_rate") + TYPE("_pperyear") + TYPE("_noyears") != "NNNN"
- RETURN(-1)
- ENDIF
-
- PRIVATE _time, _answ, _qaz, _subtot
-
- _time = 1 + ((_rate / _pperyear)/100)
- _answ = _time
- IF _noyears <> 1
- FOR _qaz = 1 to (_noyears - 1)
- _subtot = _answ * _time
- _answ = _subtot
- NEXT
- ENDIF
- RETURN(_fsum / _answ)
-
- * End of File