Difference between revisions of "Documentation/How Tos/Calc: XNPV function"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Bot: Adding Category: Documentation)
m
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{DISPLAYTITLE: XNPV function}}
 +
{{Documentation/CalcFunc FinancialTOC
 +
|ShowPrevNext=block
 +
|PrevPage=Documentation/How_Tos/Calc:_XIRR_function
 +
|NextPage=Documentation/How_Tos/Calc:_ACCRINT_function
 +
}}__NOTOC__
  
 
== XNPV ==
 
== XNPV ==
Line 15: Line 20:
 
:: where <i>pay<sub>i</sub></i> is the ''i''<sup>th</sup> payment and <i>date<sub>i</sub></i> the ''i''<sup>th</sup> date, ''i'' starting at 0.
 
:: where <i>pay<sub>i</sub></i> is the ''i''<sup>th</sup> payment and <i>date<sub>i</sub></i> the ''i''<sup>th</sup> date, ''i'' starting at 0.
  
: The calculation assumes a 365 day year, even in a leap year.
+
: The calculation assumes a 365-day year, even in a leap year.
  
 
=== Example: ===
 
=== Example: ===
Line 26: Line 31:
  
 
=== Issues: ===
 
=== Issues: ===
* The calculation is based on a 365 day year, even in a leap year, using actual days difference. There are other ways to calculate net present value.
+
* The calculation is based on a 365-day year, even in a leap year, using actual days difference. There are other ways to calculate net present value.
  
{{Documentation/SeeAlso|
+
{{SeeAlso|EN|
 
* [[Documentation/How_Tos/Calc: NPV function|NPV]]
 
* [[Documentation/How_Tos/Calc: NPV function|NPV]]
 
* [[Documentation/How_Tos/Calc: PV function|PV]]
 
* [[Documentation/How_Tos/Calc: PV function|PV]]
Line 36: Line 41:
 
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
 
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
[[Category: Documentation]]
+
[[Category: Documentation/Reference/Calc/Financial functions]]

Latest revision as of 16:05, 30 January 2024

XNPV

Returns the net present value of an investment with irregular cash payments.

Syntax:

XNPV(rate; payments; dates)

rate is the annual interest rate.
payments is a range or array containing payments made, positive if paid to you, negative if you pay.
dates is a range or array containing the dates on which those payments are made.
XNPV calculates a net present value on the first date given (date0), using the formula:
Calc xnpv equation.png
where payi is the ith payment and datei the ith date, i starting at 0.
The calculation assumes a 365-day year, even in a leap year.

Example:

XNPV(5%; B2:B4; C2:C4)

where B2:B4 contains -1000, 500, 550 and C2:C4 contains the dates 2008-01-01, 2009-01-01, 2009-07-01, returns approximately -12.65. If you bought an investment for 1000 on 2008-01-01 which paid 500 on 2009-01-01 and 550 on 2009-07-01 you'd make a small loss, compared to investing at a 5% interest rate.

XNPV(5%; B2:B4; C2:C4)

where B2:B4 contains 0, 500, 550 and C2:C4 contains the dates 2008-01-01, 2009-01-01, 2009-07-01, returns approximately 987.35, the net present value on 2008-01-01 of an investment which paid 500 on 2009-01-01 and 550 on 2009-07-01, using a 5% interest rate.

Issues:

  • The calculation is based on a 365-day year, even in a leap year, using actual days difference. There are other ways to calculate net present value.



See Also
Retrieved from "https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_XNPV_function&oldid=259752"
Views
Personal tools
Navigation
Tools
In other languages