Looks up a fixed dose-range text from the age band and subtracts a goal-specific number of minutes from the bedtime to display a 'take it at' clock time; there is no weight-based or personalised dose calculation.
Inputs: Goal = onset, Bedtime = 23:00, Age = 35
- Age 35 is not ≥ 65 and not < 18 -> dose text '0.3–0.5 mg'
- onset: bedtime 23:00 − 45 min = 22:15 (other goals shown for comparison)
- jetlag: bedtime 23:00 − 30 min = 22:30 (other goals shown for comparison)
- dswpd: bedtime 23:00 − 300 min = 18:00 (other goals shown for comparison)
- shift: bedtime 23:00 + 0 min = 23:00 (other goals shown for comparison)
- Selected goal onset: 23:00 − 45 min = 22:15
Result: Dose text '0.3–0.5 mg'; take at 22:15 (displayed in the visitor's locale format). Age 70 would show '0.3–1 mg (prolonged-release 2 mg as alternative)'; age 15 shows no dose.
Educational lookup only; the page states it is not personalised medical advice. Weight, medications and health conditions are not inputs. The goal helper text and the computed time differ slightly: onset text says '30–60 min before bedtime' (code uses 45), and jet-lag text says 'at new local bedtime' while the code outputs bedtime − 30 min.