MCPcopy Create free account
hub / github.com/MarcusRainbow/QuantMath / discounted_sum

Method discounted_sum

src/data/divstream.rs:353–359  ·  view source on GitHub ↗

Returns the NPV of all cash and relative dividend amounts between two dates. Dividends on the 'from' date are not included. Dividends on the 'to' date are included. All amounts are discounted to the base date.

(&self, from: Date, to: Date)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

check_discounted_divsFunction · 0.80

Calls 1

Tested by 1

check_discounted_divsFunction · 0.64