twrr function

Computing TWRR, the time-weighted rate of return