var date = new Date(); var coeff = 1000 * 60; var sex = coeff - (Math.floor(date.getTime())) % coeff; setTimeout(function(){alert('дзынь')}, sex);