Add input fields and calculate sum of hours