I'm making a program for a hotel management where a user input a check-in date and check-out date If the client stays beyond this time, he is charged for another day.
my main problem here is that how can i execute my code that not needed to push a button.
my idea is use a timer and set a time interval every hour so that it checks the database if the system time and check-out time is met. any ideas?