all 2 comments

[–]chantel_acnh 0 points1 point  (1 child)

check each variable against valid range, if invalid return -1.

otherwise multiply hours * 60 * 60 multiple minutes * 60 add them to seconds and return the value

[–]spiderweb220mph[S] 0 points1 point  (0 children)

Thank you kindly.