If you mean getting the time between the two "Downtime"s, you can get the values with PHP using MYSQL connection, and calculate the difference, and then delete the two rows, and replace it with a new row, with the calculated results.
$query = "DELETE FROM TaBlEnAmEhErE WHERE DTCode=2";