When you are ready to leave, if possible you should arrange for someone to pick you up and take you home. The ward staff will be able to give you a time you are likely to be discharged.