There is an error in calculating the average viewing time per user

Query is :

The exception is :

Is this a bug? I hope someone will answer it for me.