Added missing math.h include.

duration.h uses math functions like floor(), but doesn't explicitly include the math library, leading to compile errors.