How do i solve this mathmarical error i noticed while using my own code for real world application
The output eror is more of how i do the math to solve the problem i noticed when putting 6:45 as the clock in time then putting 21:00 as the clockout time it give 15 Hours and 45 Minutes which is incorrect it show be 14 Hours and 15 Minutes so now to the question how do i fix this mathmatical error and how should i set up the Formula here is what i designed it around "((Hour out - Hour in) + (Minute out - Minute in)) = time worked" and i know its not really a mathmatical error because the webpage is saying thats what it got from the INSTRUCTION i gave it so its correct in the result of steps given it which means as i said above im solving the problem the wrong way to solve calculate shift hours https://code.sololearn.com/Wijn5IeidQEV/?ref=app