This is a very, very simple javascript sample that displays the number of days left until a specified date. It only refreshes with the page or on the button click, not on a timer.
There is no format checking, so enter the date as mm/dd/yyyy or the calculation will not work.