Neat!
For me: I need 0.3 mg melatonin almost every day to control my sleep and do a bunch of other things. The onset is between 1 to 3 hours. In practice it means I need to be okay with an early wake-up if it kicks in within 1 hour.
When I feel jittery/trembly I need magnesium as my jitters stop when I take it.