First you need total minutes wich is: date2 - date1 formatted as minutes like this:
date2 - date1 formatted as minutes
Next you need to format it to get hours and minutes like this: (hour) total minute's value / 60:floor : (minutes) total minute's value <-modulo->60
total minute's value / 60:floor
total minute's value <-modulo->60
example: