def present_value(amount, rate, t): cf = CashFlow(amount=amount, t=t) return cf.present_value(ir=rate)