Sum Time Fields and Require 24 hours

I’m trying to create a form for reporting daily activities at a construction company.
I’d like to list activity types, and require that the user allocate hours and minutes to different activities until the sum is 24 hours.
Any insights on how to accomplish this?