var f_num = 133, d_num = 529, days = (new Date().getTime() / 1000 / 60 / 60 / 24) - (new Date('Apr 6 2010').getTime() / 1000 / 60 / 60 / 24); days = Math.round(days); document.write(f_num + d_num * days);