time_calc function

Times relative to an event (typically dosing)