Is there a way to determine the end time by using the start time and duration?
I am able to receive these values from an API:
data : {
'startTime': 1100, // (the format is in 24hrs i.e 11:00 AM)
'duration' : 60 // (in minutes)
}
With the provided attributes, the goal is to calculate the end time like this: 11:00 AM + 60 = 12:00 PM