Robuta

https://it.mathworks.com/help/finance/cfdur.html cfdur - Cash-flow duration and modified duration - MATLAB This MATLAB function calculates the duration and modified duration of a cash flow in periods. cash flowdurationmodifiedmatlab