Adding A "Safe Zone" Inside Another Collision Box?

how do you apply the damage?
Do you call a do damage function or do you just reduce the health every 0.5 seconds until you leave?