You may have to tweak this but this might get you started.
Group on Device
Record Sort on date time (or id since it looks to be the same)
Create a formula to get your difference in time in minutes and place on detail:
if previous({table.status})="Down" then
datediff("n",{table.datetime},previous({table.datetime}))