Fixed bug where iterating by duration would include moment not contained within range

Using a range that did not end neatly on an hour-boundary, iterating by a duration would result in an extra iteration. This was because the expected number of iterations was incorrectly being rounded up. Rounding the number down fixed this issue.