Fix rounding error with duration

floor instead of round.