Calculate all numbers from fields

Hey,
i use the code from this post: Calculate (ADD) all Numbers for each page->field to echo it

I use this for a field with number like this 00:20 (hour and min).
It works but the calculated number from all fields is rounded.

Ps.: I post this because my other post was not seen (question is solved).

Thanks for help.

00:20 is no valid number format in PHP. You should convert the strings to a number manually before adding the time, for example like this:

$date = date_parse($subpage->fieldwithtime());
$sum += $date['hour'] + $date['minute'] / 60;

Thanks, it works perfect.