countdown

<script type="text/javascript">
var targetTime = new Date();
// Right now
var now = targetTime.getTime();
// Time in the future when you want to refresh
targetTime.setHours(23,5,0,0); // hour, minute, second, millisecond
// Time until refresh
var time = targetTime.getTime() - now;
window.setTimeout(function(){window.location.reload(true);},time);
</script>