improved Yearly- and MonthllyBucketSizeGenerator to avoid date arithmetic