diff --git a/src/Projection.jl b/src/Projection.jl index 79d9557..ba2a503 100644 --- a/src/Projection.jl +++ b/src/Projection.jl @@ -209,11 +209,10 @@ function __rewrap(from, to) return to end - function FinanceCore.present_value(model, p::FinanceModels.Projection{C,M,K}, cur_time=0.0) where { C,M,K<:FinanceModels.CashflowProjection } xf = p |> Filter(cf -> cf.time >= cur_time) |> Map(cf -> FinanceCore.discount(model, cur_time, cf.time) * cf.amount) foldxl(+, xf) -end \ No newline at end of file +end