More accurate error on non-positive appointment duration