Correct duration calculation
Correct duration calculation

Fixes #4464
kanboard/kanboard,kanboard/kanboard,renothing/kanboard,renothing/kanboard,renothing/kanboard,kanboard/kanboard,BlueTeck/kanboard,libin/kanboard,libin/kanboard,BlueTeck/kanboard,BlueTeck/kanboard