InvestorQ : What is the process and logic of calculating duration?