time_to_maturity: Calculate the number of periods until maturity for an...

Description Usage Arguments Value Examples

View source: R/time_to_maturity.R

Description

Calculate the number of periods until maturity for an investment

Usage

1

Arguments

present_value

Value of money at time t0.

future_value

Value at maturity.

rate

Interest rate.

Value

Number of periods until maturity

Examples

1
2
time_to_maturity(1000, 1050, 0.05)
time_to_maturity(1000, 2000, 0.07)

bclark86/clarklytics documentation built on Oct. 4, 2020, 12:14 a.m.