I'm using a 24 hour countdown timer that runs in JavaScript. Currently, it uses seconds as its base measurement. I have 86400 listed here but I would like to calculate how many seconds are left until midnight each day, EST (-5). Could someone please demonstrate how I might define that value and insert it for the "time" variable? I've seen other variations of this but I'm having trouble getting it to work for this specific script. Thank you in advance.
<script type="application/javascript">
var myCountdown1 = new Countdown({
time: 86400, // 86400 seconds = 1 day
width:200,
height:55,
rangeHi:"hour",
style:"flip" // <- no comma on last item!
});
</script>