I have three columns E, F and G

Column E is Scheduled Arrival entered as a time in military time format
Column F is Actual Time In entered as a time in military time format
Column G shows any arrival Delays with the formula =IF((F5-E5)>0,(F5-E5),0)

The problem is is when the Actual time is past midnight. So for example, Scheduled Arrival is 22:00, Actual Time in is 3:00 the arrival delay in column G needs to be 300 (in minutes).

Thanks in Advance!