A computing device configured to perform a method of analyzing a glucose state, the method comprising: identifying, by the computing device, a target glucose state including a target glucose level and a target rate of change of the target glucose level; identifying, by the computing device, an initial glucose state including an initial glucose level and an initial rate of change of the initial glucose level, the initial glucose state being different from the target glucose state; and calculating, by hazard analysis logic of the computing device, a target return path for a transition from the initial glucose state to the target glucose state, the target return path comprising at least one intermediate glucose state associated with the transition from the initial glucose state to the target glucose state, the target return path being calculated by the hazard analysis logic based on a hazard associated with the at least one intermediate glucose state of the target return path, wherein the calculating comprises: identifying a plurality of potential intermediate glucose states between the initial glucose state and the target glucose state, and selecting the at least one intermediate glucose state from the plurality of potential intermediate glucose states for the target return path to minimize the hazard associated with the target return path, wherein the hazard associated with the at least one intermediate glucose state of the target return path includes a total estimated time for the person to transition from the at least one intermediate glucose state to the target glucose state along the target return path, and wherein the total estimated time is computed based on a predetermined maximum acceleration of glucose and the number of intermediate glucose states along the target return path. identifying, by the computing device, a target glucose state including a target glucose level and a target rate of change of the target glucose level; identifying, by the computing device, an initial glucose state including an initial glucose level and an initial rate of change of the initial glucose level, the initial glucose state being different from the target glucose state; and calculating, by hazard analysis logic of the computing device, a target return path for a transition from the initial glucose state to the target glucose state, the target return path comprising at least one intermediate glucose state associated with the transition from the initial glucose state to the target glucose state, the target return path being calculated by the hazard analysis logic based on a hazard associated with the at least one intermediate glucose state of the target return path, wherein the calculating comprises: identifying a plurality of potential intermediate glucose states between the initial glucose state and the target glucose state, and selecting the at least one intermediate glucose state from the plurality of potential intermediate glucose states for the target return path to minimize the hazard associated with the target return path, wherein the hazard associated with the at least one intermediate glucose state of the target return path includes a total estimated time for the person to transition from the at least one intermediate glucose state to the target glucose state along the target return path, and wherein the total estimated time is computed based on a predetermined maximum acceleration of glucose and the number of intermediate glucose states along the target return path. identifying a plurality of potential intermediate glucose states between the initial glucose state and the target glucose state, and selecting the at least one intermediate glucose state from the plurality of potential intermediate glucose states for the target return path to minimize the hazard associated with the target return path, wherein the hazard associated with the at least one intermediate glucose state of the target return path includes a total estimated time for the person to transition from the at least one intermediate glucose state to the target glucose state along the target return path, and wherein the total estimated time is computed based on a predetermined maximum acceleration of glucose and the number of intermediate glucose states along the target return path.