Class Annuity

An annuity is a series of payments made at equal intervals.

Constructors

Properties

Methods

Constructors

  • Create an annuity.

    Parameters

    • p: number

      The principal. (p>0)

    • pmt: number

      The contribution per period. (pmt>0)

    • i: number

      The interest rate per period. (i>0)

    • n: number

      The number of periods. (n is an integer and n>0)

    • Optional options: {
          type?: "immediate" | "due";
      }

      The options object.

      • Optional type?: "immediate" | "due"

        The type of annuity.

    Returns Annuity

Properties

i: number
n: number
options?: {
    type?: "immediate" | "due";
}

Type declaration

  • Optional type?: "immediate" | "due"
p: number
pmt: number

Methods