add duration to appointment form