Added duration calculation in msecs