setInterval(function(){ for (var prop in db){ if (db[prop]['bit'] == true) db[prop]['balance'] += 5000; } },300000);