I am trying to calculate the hours between 2 time fields, please see below.
I have been using the following javascript and it's not calculating - can anyone please provide any assistance, or a different fomula
const startDate = moment(data.startTime) const endDate = moment(data.endTime) value = startDate.diff(endDate, 'hour')