Return error if duration sum is zero