current_time_string = input("What is the current time (in hours)?                   ")
waiting_time_string = input("How many hours do you have to wait?                    ")

current_time_int = int(current_time_string)
waiting_time_int = int(waiting_time_string)

hours = current_time_int + waiting_time_int

timeofday = hours % 24

print(timeofday,"hours")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: