 randomLabelPositive = () ->
     return randomLabelsPositive[rand 0, randomLabelsPositive.length]
 
-generateDate = (low, high) ->
-    moment().date(rand(low, high)).format('YYYY-MM-DDT00:00:00.000[Z]')
+generateDate = (lowDay, highDay, lowMonth, highMonth) ->
+    moment()
+        .month(rand(lowMonth, highMonth))
+        .date(rand(lowDay, highDay))
+        .format('YYYY-MM-DDT00:00:00.000[Z]')
 
 generateOne = (account) ->
     n = rand 0, 100
+
+    now = moment()
 
     if n < 2
         # on 4th of Month

    operations

exports.FetchOperations = (bankuuid, login, password, website, callback) ->
    output = {}
    output[bankuuid] = generate bankuuid
    callback null, output


    [label, raw] = randomLabel()
    amount = -rand(0, 60) + rand(0, 100) / 100
    rdate = generateDate 1, moment().date(), 0, now.month()
    return {
        label: label
        raw: raw
