?How can I calculate the duration in Google Sheets?

How can I calculate the duration in Google Sheets?

The process of determining the length of time between two specific dates or times in Google Sheets is known as calculating duration. This can be achieved by using the built-in functions and formulas provided by the program. By inputting the appropriate time and date values, Google Sheets can accurately calculate the duration and display it in the desired format. This feature is useful for tracking project timelines, calculating work hours, and other time-related calculations.

DURATION

Calculates the number of compounding periods required for an investment of a specified present value appreciating at a given rate to reach a target value.

Sample Usage

DURATION(DATE(2010,01,02), DATE(2039,12,31), 3, 1.2, 2)

DURATION(A2, B2, C2, D2, E2, 1)

Syntax

DURATION(settlement, maturity, rate, yield, frequency, [day_count_convention])

  • settlement – The settlement date of the security, the date after issuance when the security is delivered to the buyer.
  • maturity – The maturity or end date of the security, when it can be redeemed at face or par value.
  • rate – The annualized rate of interest.
  • yield – The expected annual yield of the security.
  • frequency – The number of interest or coupon payments per year (1, 2, or 4).
  • day_count_convention[ OPTIONAL – 0 by default ] – An indicator of what day count method to use.
    • 0 indicates US (NASD) 30/360 – This assumes 30 day months and 360 day years as per the National Association of Securities Dealers standard, and performs specific adjustments to entered dates which fall at the end of months.
    • 1 indicates Actual/Actual – This calculates based upon the actual number of days between the specified dates, and the actual number of days in the intervening years. Used for US Treasury Bonds and Bills, but also the most relevant for non-financial use.
    • 2 indicates Actual/360 – This calculates based on the actual number of days between the specified dates, but assumes a 360 day year.
    • 3 indicates Actual/365 – This calculates based on the actual number of days between the specified dates, but assumes a 365 day year.
    • 4 indicates European 30/360 – Similar to 0, this calculates based on a 30 day month and 360 day year, but adjusts end-of-month dates according to European financial conventions.

Notes

  • settlement and maturity should be entered using DATE, TO_DATE, or other date parsing functions rather than by entering text.
  • The Macaulay duration is different from the modified duration (MDURATION) in that it measures the weighted average time for an investment to reach maturity. The modified duration is related to the Macaulay duration in the following way: MDURATION = DURATION / [1 + (yield / frequency)].

See Also

YIELD: Calculates the annual yield of a security paying periodic interest, such as a US Treasury Bond, based on price.

PRICE: Calculates the price of a security paying periodic interest, such as a US Treasury Bond, based on expected yield.

MDURATION: Calculates the modified Macaulay duration of a security paying periodic interest, such as a US Treasury Bond, based on expected yield.

Examples

[wpcc-iframe height=”300″ src=”https://docs.google.com/spreadsheet/pub?key=0As3tAuweYU9QdE41Y1d6MFNlRjVqSXR6VjdSMVRxOFE&output=html” width=”500″]

Cite this article

stats writer (2024). How can I calculate the duration in Google Sheets?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-calculate-the-duration-in-google-sheets/

stats writer. "How can I calculate the duration in Google Sheets?." PSYCHOLOGICAL SCALES, 29 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-calculate-the-duration-in-google-sheets/.

stats writer. "How can I calculate the duration in Google Sheets?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-calculate-the-duration-in-google-sheets/.

stats writer (2024) 'How can I calculate the duration in Google Sheets?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-calculate-the-duration-in-google-sheets/.

[1] stats writer, "How can I calculate the duration in Google Sheets?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.

stats writer. How can I calculate the duration in Google Sheets?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.

Download Post (.PDF)

Comments are closed.

Slide Up
x
PDF
Scroll to Top