I am having a pdf form that includes three cells:
The user will enter the start time and end time in HH:MM and the file will calculate the duration In HH:MM
Thanks in advance.
You can start by reading these articles on the Date object, which is what you'll need for calculating duration.
The example in the second article shows how to calculate the time between two times.