Class representing a perpetuity-immediate — a stream of fixed payments made at the end of each period indefinitely.
The fixed payment made each period. Must be positive.
The interest rate per period (as a decimal, e.g., 0.05 for 5%). Must be positive.
Gets the interest rate per period (as a decimal).
Gets the payment amount per period.
Calculates the present value of the perpetuity-immediate.
The present value (PV) = payment / interestRate
Class representing a perpetuity-immediate — a stream of fixed payments made at the end of each period indefinitely.