Documentation

Actus.Util.Schedule

Map a calendar date onto the Time axis (serial day number ≥ 0).

Equations
Instances For

    Schedule function S(s, c, T, B) (§3.1).

    • c = none yields the two-point schedule [s, T].
    • otherwise the cyclic times up to T are generated; when includeEnd (the boolean B) T is appended, applying long/short stub correction to the final period. Each time has the contract's EOM and BDC conventions applied.
    Equations
    Instances For

      Array schedule S̄(s⃗, c⃗) (§3.2): concatenate S(sᵢ, cᵢ, sᵢ₊₁) over the successive anchor/cycle pairs, ending at tEnd.

      Equations
      Instances For
        def Actus.Util.Schedule.annuity {α : Type} [Amount α] (n a r : α) (yfs : List α) :
        α

        Annuity amount A(s,T,n,a,r) (§3.8): the constant total instalment that amortizes n + a over the payment periods whose year fractions are yfs (Y(tᵢ, tᵢ₊₁)), at rate r. Computed as the present-value annuity

        A = (n + a) / Σₖ ∏_{j ≤ k} (1 + r·yfⱼ)⁻¹,

        i.e. n + a divided by the sum of discount factors — the formulation the ACTUS reference uses. (Σₖ runs over the periods; the inner product is the discount factor to the end of period k.)

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For