     url: "http://indicadoresdeldia.cl/webservice/indicadores.json"
     json: true
     transform: (body) ->
-      parseFloat body.indicador.uf.replace("$", "").replace(".", "").replace(",", ".")
+      parseFloat body.indicador.uf.replace(/[$.]/g, "").replace(",", ".")
   rp options
 
 process = (timeEntries, amount, price) ->

    res.send "Processing time entries..."
    tags = ["Pagado"]
    action = "add"
    end = moment()
    start = end.subtract 1, "years"
    user = robot.brain.userForName res.message.user.name
    encryptor = simpleEncryptor secret
    message = ""
    toggl = getClient encryptor.decrypt user.toggl.api_token
    toggl.getTimeEntriesAsync(start.toISOString(), end.toISOString()).then (timeEntries) ->
      process timeEntries, amount, price
    .then (data) ->
      message = "Ready#{data.difference}"

    encryptor = simpleEncryptor secret
    toggl.getUserDataAsync({}).then (userData) ->
      unless robot.brain.data.users[res.message.user.id]?
        robot.brain.data.users[res.message.user.id] =
          name: res.message.user.name
        robot.brain.save()
      user = robot.brain.userForName res.message.user.name
      user.toggl =
