Fixing binning for bin sizes not dividing duration