Best way to handle Oxygen Counter

Currently trying to create a oxygen / health system so the oxygen ticks down over time and after 0 oxygen the health decreases anyone got any advice or tips.

basically just use a timer to trigger an event. the event will decrement the value of oxygen. i used a branch here so when oxygen is at or below 0 then it starts affecting health. to regain the oxygen you could use a similar method.