MOB-2443 Cast duration to a float