Maryland Health - General Section 10-803
§ 10-803.
  (a)   An individual who is admitted voluntarily to a facility, on an informal request, may leave the facility at any time between 9 a.m. and 4 p.m., unless the admission status of the individual has been changed to an involuntary admission.
  (b)   An individual who has been admitted voluntarily, under a formal written application, may not be held for more than 3 days after the individual asks for release, unless the admission status of the individual has been changed to an involuntary admission.
  (c)   A minor who has been admitted voluntarily, on the application of a parent or guardian of the minor, may not be held for more than 3 days after the applicant for the admission asks for release, unless the admission status of the minor has been changed to an involuntary admission.