Since time answers are usually represented with Text variables (using the 99:99 A.M. text format) in HotDocs, there is no simple way to perform calculations with time variables. For example, to calculate the elapsed hours and minutes between two times, each time must first be split into its individual components (hours, minutes, and A.M./P.M.) before the times can be compared. (See Use Time Values in Numerical Calculations.)
In this example, the start and end times are first translated into a number of minutes since midnight. This means that a start time of 10:15 A.M. is 615 minutes (10 hours = 600 minutes + 15 minutes). Likewise, an end time of 12:30 P.M. is translated to 750 minutes. Once these two values are calculated, the elapsed time is simply the difference between the two numbers, which in this case is 135 minutes. This answer is then reduced to hours and minutes to calculate the final answer.