Skip to main content

Indicators for capital budgeting: npv, irr, mirr, ipp, etc

Project description

Indicators Used Frequently in Capital Budgeting

  • regular cash flows: The 1st value of cfs is negative (investment), other values of cash flows are positive
  • irregular cash flows: The signs of cash flows change more than once

Attributes

  • cfs: cash flows
  • irregular: bool

Methods

  • npv(): net present value
  • irr(): internal rate of return
  • mirr(): modified internal rate of return
  • ipp(): investment payback period

npv

Given a series of cash flows (cfs) and discount rate (r), npv is the present value at r of all cash flows.

$$ \text{npv} = \sum_{t = 0}^n \frac{\text{cf}_t}{(1 + r) ^ t} $$

NB: Differring from npv in finance, function npv() in MS Excel does not take account the 1st value of cfs

irr

Given a series of cash flows (cfs), irr is the discount rate at which the present value of all cash flows equals 0

$$ \sum_{t = 0}^n \frac{\text{cf}_t}{(1 + r) ^ t} = 0 $$

mirr

The modified internal rate of return (MIRR) is a measure of the profitability of a project or other investment.

It assumes that positive cash flows are reinvested at the firm's cost of capital and that the initial outlays are financed at the firm's financing cost.

By contrast, the traditional internal rate of return (IRR) assumes the cash flows from a project are reinvested at the IRR itself.

NB: regular cfs or irregular cfs (signs of cash flows change more than once) are all ok

$$ \text{mirr} = (\frac{\text{future values of positive cfs}}{\text{present value of negative cfs}}) ^ {1/n} - 1 $$

ipp

IPP is the time to pay back the investment

Usage

from capitalbudgeting import CapitalBudgeting as CapBud

cb = CapBud([-100, 21, 21, 24, 23, 32, 25])
print(cb.npv(0.09))
print(cb.irr())
print(cb.mirr(0.05))
print(cb.ipp())

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

capitalbudgeting-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file capitalbudgeting-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for capitalbudgeting-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54dcfbc6921b52973f39c8ba4ce62a6f576e34633df5450c73875ad66e07dedf
MD5 73c3118555d4f36c352ac283c2214d80
BLAKE2b-256 009964bedbc1bd1f453fc811388f205cee9a770aa2a0996a16fc0979d5594f4d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page