Gap between exercise and sleep

Patient: I want know what should be the gap between exercise and sleeping time

Doctor: