¿How to get Negative number in Date Difference? : Hello i think this is an easy one, i have this code in pho to get difference between two dates, im getting the difference but only positive, i need it goes negative when the final date has passed, i try format(), invert, but nothing seems to work, thanks for the help.

    function dias_transcurridos($fecha_i, $fecha_f)
    {
    $dias = (strtotime($fecha_i) - strtotime($fecha_f)) / 86400;
    $dias = abs($dias);
    $dias = floor($dias);
    return $dias;
    }
    $hoy = date('Y-m-d');

Then i call the code in my loop:

    $elPlazo =  dias_transcurridos($row["DateEnd"], $hoy);
    echo "<td>" . $elPlazo . " Días</td>\n";


How can i get that $elPlazo b a negative number when the end date has passed from today?

Thanks