Measuring the duration of a floating-rate bond