Add duration to a task: Write a program that, given the start time of a task and its duration in seconds, design the algorithm that calculates the time that the task will end (note: the duration of the task can be several hours, never more than half a day <=14400). A working day will be at most 8 hours, starting at 8:00 and ending at 16:00.
That is the statement, I think I have the complete program but when I run it it gives me an error. Attached photo of the code
and the error it gives me is the following
The following code corrects the error shown, keep polishing it until you get what you are looking for.