Skip to main content

carry

Function carry 

Source
pub(crate) fn carry(
    start: Money,
    as_of: Date,
    flows: &[Expected],
    today: Date,
    horizon: Date,
    floor: Money,
) -> (Vec<(Date, Money)>, Option<(Date, usize, Money)>)
Expand description

The balance from start on as_of, carried day by day with flows, as seen from today to horizon; and the first day from today it goes below floor with a payment out: that day, the flow that takes it there, the balance then.