today = new Date();
BigDay = new Date("May 1, 2001")
msPerDay = 24 * 60 * 60 * 1000 ;
yUntil = 24 * 60 * 60 * 1000 * 365;
timeLeft = (today.getTime() - BigDay.getTime());
e_yearLeft = timeLeft / yUntil;
yearLeft = Math.floor(e_yearLeft);
e_daysLeft = timeLeft / msPerDay;
daysLeft = Math.floor(e_daysLeft);
e_days2Left = (daysLeft - (yearLeft * 365.25));
days2Left = Math.floor(e_days2Left);
e_hrsLeft = (e_daysLeft - daysLeft)*24;
hrsLeft = Math.floor(e_hrsLeft);
minsLeft = Math.floor((e_hrsLeft - hrsLeft)*60);
document.write("" + yearLeft + " lat, " + days2Left + " dni, " + hrsLeft
+" godz. ");

