You want to implement a database-driven solution. To track anything that has to do with money on the client-side is a complete disaster.
At the very basic level, it boils down to these steps:
- Create a database containing the current bids, the day they expire etc.
- Make a Java script that queries the database to retrieve the bids. The server side is also responsible for checking if bids have expired and removing them etc.
- The javascript part is only responsible for displaying the remaining time to the user.
If you have little to no knowledge of how the tools you picked work, start with understanding them first. There are books written on the topic.